comrak icon indicating copy to clipboard operation
comrak copied to clipboard

Minor inconsistencies when outputting ordered lists to commonmark

Open digitalmoksha opened this issue 1 year ago • 0 comments

When outputting ordered lists and ordered task lists to commonmark, there are a few minor problems with numbering. The outputted commonmark is technically correct, but it might be nice to have the numbering be consecutive rather than simply what the original value was. Using a task list, the numbering doesn't increase or maintain the original value - it's always the same number.

comrak -t commonmark

3. one
5. two

should yield

3.  one
4.  one

instead of

3.  one
5.  two

notice the numbering isn't consecutive


comrak -t commonmark -e tasklist

3. [ ] one
5. [ ] two

should yield

3.  [ ] one
4.  [ ] two

instead of

3.  [ ] one
3.  [ ] two

notice the numbering isn't correct

digitalmoksha avatar Jun 17 '23 16:06 digitalmoksha