vmg / redcarpet

The safe Markdown parser, reloaded.
MIT License
4.97k stars 524 forks source link

Redcarpet incorrectly parses nested lists #790

Open kristoph opened 1 month ago

kristoph commented 1 month ago
  1. Lists: You can create a bulleted list by prefacing each line with a dash or an asterisk. For example:

    • Item 1
    • Item 2
    • Item 3

( or equivalent string 5. Lists: You can create a bulleted list by prefacing each line with a dash or an asterisk. For example:\n\n * Item 1\n * Item 2\n * Item 3 )

Generates ...

"<ol>\n<li>Lists: You can create a bulleted list by prefacing each line with a dash or an asterisk. For example:</li>\n</ol>\n\n<ul>\n<li>Item 1</li>\n<li>Item 2</li>\n<li>Item 3</li>\n</ul>\n"
jlpereira commented 1 month ago

Any news on this? We are also having this problem with nested lists