abricotine
abricotine copied to clipboard
list item increment
The editor could increment consecutive items on ordered lists; just from the 2. item on as the firt might be continuing from an earlier unfinished lists.
1. item1
1. item2
1. item3
some explaiing text
4. item 1 or 4?!
4. nextItem
I see several way to do this:
- using a textMarker so the correct number will be previewed (this can be misleading since the previewed number is not the real value in raw text, though),
- adding a function to reorder list indexes (as we already have "beautify" for tables),
- rewriting
continuelist.js(see #43) to reorder the entire list each time a new element is added.
This last option is the best in my opinion.
I don't know what is the best for others, I would agree. If different implementations could be configurable this could be optimal for others then. Another possibility: maybe look on other md-editors (also detect other misinterpretations), or time may show in feedback.