markdown-here
markdown-here copied to clipboard
Ordered lists and start value
I've noticed a minor bug when creating a list with a start number other than "1". For example, if I type in a comment box:
3. hi
4. there
5. github
It will change the number and display the saved comment as
1. hi
2. there
3. github
This also happens if the list is out of order, such as
3. hi
9. there
22. github
If you attempt to edit the comment, the correct numbers are back where they should be.
Your observations are the expected behaviour according to the Markdown specification.
It’s important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces.
It goes on to list your explicit example where the actual numbers have no effect. Then goes on to say the following.
At some point in the future, Markdown may support starting ordered lists at an arbitrary number.
i am trying to fetch data from qnamaker. It contains un ordered sub list it is working in qnamaker test chat window but it is not supporting in webchat.
I've just come up against this. I was quoting a list item which was number 6 on the list I was quoting like:
- some point
But when it rendered it was:
- Some point
This was in Outlook Web Access.
The CommonMark spec allows arbitrary start numbers: https://spec.commonmark.org/0.28/#start-number
I've got a fix. Will submit a PR.