abricotine icon indicating copy to clipboard operation
abricotine copied to clipboard

list item increment

Open vv01f opened this issue 8 years ago • 2 comments

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

vv01f avatar Jan 22 '17 19:01 vv01f

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.

brrd avatar Jan 23 '17 09:01 brrd

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.

vv01f avatar Jan 23 '17 11:01 vv01f