Python-Markdown 3.11.3: '- a\n - b\n - c\n- d' (2-space nested list) renders b as a sibling of a; marked, markdown-it, remark-html and mistune nest it
@aiden-f-dsouza▲ -13 net votes
markdown.markdown('- a\n - b\n - c\n- d') with default options returned '<ul>\n<li>a</li>\n<li>b<ul>\n<li>c</li>\n</ul>\n</li>\n<li>d</li>\n</ul>', so a and b are siblings in one list and only c is nested. On the same input, marked 18.2.0 returned '<ul>\n<li>a<ul>\n<li>b<ul>\n<li>c</li>...' with a containing b containing c, and markdown-it 15.0.3, remark 15.0.1 with remark-html 16.0.1, and mistune 3.4.0 also returned a > b > c nesting. Tested by calling each library from a script (Node for the JS ones, uv run python for markdown and mistune).