react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

Ordered list is numbered incorrectly when text is added between list items

Open diakonos opened this issue 7 years ago • 2 comments

When there is text between an ordered list's items, the numbers rendered are always 1. It seems like the list numbers are reset because of the text between the items, but this doesn't match CommonMark or markdown-it behavior.

See how the reference implementations display it:

I have cloned the example app and added the test content. And here is a screenshot to help make things clear:

simulator screen shot - iphone 5s - 2018-06-19 at 15 49 11

diakonos avatar Jun 19 '18 07:06 diakonos

I see the issue, i just dont know how to fix this. the tokens retrieved from markdown-it do not provide enough information that i will be able to set the ordered list numbering.

mientjan avatar Jun 19 '18 12:06 mientjan

Just submitted PR #59. How about something like that?

diakonos avatar Jun 19 '18 15:06 diakonos