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

/n inside bold breaks the bold

Open zerostatic-review opened this issue 2 years ago • 2 comments

Example markdown: "**Some bold text with\n new line**"

This will display as "**Some bold text with new line" (showing the asterisks)

zerostatic-review avatar Aug 16 '22 21:08 zerostatic-review

@probablyup any thoughts on this? I ran into the same issue with italics.

janpe avatar Sep 15 '23 06:09 janpe

There also seems to be some inconsistencies.

*hello 
world*

results in:

*hello world*

but

**hello 
world**

results in:

**hello world

janpe avatar Sep 18 '23 06:09 janpe

*s and _s are very common in mathematics. Is there a way to turn this off?

henrymcl avatar Apr 08 '24 09:04 henrymcl

*s and _s are very common in mathematics. Is there a way to turn this off?

I would recommend using code blocks for things that contain markdown-like syntax.

quantizor avatar Apr 08 '24 12:04 quantizor

*s and _s are very common in mathematics. Is there a way to turn this off?

I would recommend using code blocks for things that contain markdown-like syntax.

you're right

henrymcl avatar Apr 09 '24 09:04 henrymcl