quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

Unexpected nested list behavior #577

Open twall opened 4 months ago

twall commented 4 months ago

When a numbered list is followed by an unordered list

Given a numbered list with some nested items:

1. This is the primary list
2. Which may have nested items
- nested with a dash
 - or nested with a space + dash
3. The numbered list should continue at "3"

Github markdown:

  1. This is the primary list
  2. Which may have nested items
    • nested with a dash
    • or nested with a space + dash
  3. The numbered list should continue at "3"

markdown-to-jsx markdown:

  1. This is the primary list
  2. Which may have nested items
  3. nested with a dash
    • or nested with a space + dash
  4. The numbered list should continue at "3"