markdown-to-jsx
markdown-to-jsx copied to clipboard
Paragraph wrongly included to list item
For the following md:
4. Title
Paragraph1
+ Option1
+ Option2
Paragraph2
It should be displayed like this:
-
Title
Paragraph1
- Option1
- Option2
Paragraph2
(Correct on github)
But markdown-to-jsx renders it incorrectly:
It seems that Paragraph2
is included into bullet Option2
, unlike github.
This library is very nice and I wish this can be fixed or workarounded.
For those who have to solve this problem, I found react-markdown
is correct with this.
I have a similar issue. I pass an element of type string as a children
prop. It looks like that:
<p>* this is my asterisk note</p>
But the markdown-to-jsx
rendered it as an object with an unordered list. I thought that the syntax has a problem with the *
asterisk character.
try
4. Title
Paragraph1
+ Option1
+ Option2
Paragraph2
4. Title Paragraph1 + Option1 + Option2 Paragraph2
works! thank you