Closed jdanyow closed 3 weeks ago
Example stream where the ordered list start
attribute is being set unexpectedly:
commenting out this line resolves the issue where the <ol>
's start
attribute is assigned unexpectedly:
https://github.com/thetarnav/streaming-markdown/blob/588f5d4128750485da74d427ebdce4ccb25a4c62/smd.js#L538
But it does not fix the issue where list items with a line break between them are not rendered as a continuous list and are instead rendered as separate lists with one item each:
1. hello
2. world
3. wave
hello
world
wave
Interesting, thank you for the detailed report. So these are two separate issues. Currently multiple newlines are used to exit out of tokens and start a new line, which has some unpolished edgecases around lists, blockquotes and such. In the this example, the start attr is being set after 5th list item, right?
Fixed the issue with start attr because it seemed like a simple overlooked mistake and nothing complicated. The one with newlines will probably be harder but I need to taclke it eventually.
Thank you! Wow that was quick. Sent you a coffee, much appreciated.
Thanks for this great lib- it's working really well in my project.
I sometimes see some issues with ordered lists where the
start
attribute is being set unexpectedly.Couple tests that I think should pass but do not: