markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

An orderd list after an unordered list will result in one unordered list

Open schmikolai opened this issue 4 years ago • 4 comments

This markdown

- lorem
- ipsum
- dolor
1. sit
2. amet
3. consetetur

will output

  • lorem
  • ipsum
  • dolor
  • sit
  • amet
  • consetetur

instead of

  • lorem
  • ipsum
  • dolor
  1. sit
  2. amet
  3. consetetur

Likewise it will output an ordered list if you put that first

schmikolai avatar Jun 23 '20 12:06 schmikolai

bump on this one, just encountered it too

jthistle avatar Aug 25 '20 19:08 jthistle

Heya, really fantastic library you have here; turned out to be exactly what I needed, when I needed it. 🙌

Just chiming in to say I ran into this as one well. At the moment its keeping us from using this for all our markdown rendering, and are just using it when we need to be able to inline components. But were this fixed, I think we'd move to using it everywhere 💪

mikeappell avatar Oct 19 '20 13:10 mikeappell

I am also observing this behavior even when there is a blank line in between:

- List Item A
- List Item B
- List Item C

1. Item \`One\`
2. Item **Two**
3. Item *Three*

Results in a single ul React element being rendered with all 6 li elements as it's children.

coreyward avatar Mar 05 '21 22:03 coreyward

+1

hatched-danny avatar Dec 01 '21 18:12 hatched-danny