Text following line-starting HTML tag gets split into new pargaraph
See original GitHub issueBeen digging through the code and can’t quite figure out the why of this behavior and how to change it. per https://probablyup.com/markdown-to-jsx/
<ins>Insertion before text</ins> followed by some text
Some text <ins>insertion within</ins> text
becomes rendered as
<ins>Insertion before text</ins>
<p> followed by some text</p>
<p>Some text <ins>insertion within</ins> text</p>
when I would instead expect:
<p><ins>Insertion before text</ins> followed by some text</p>
<p>Some text <ins>insertion within</ins> text</p>
Any hint in the right direction? Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:15 (7 by maintainers)
Top Results From Across the Web
<br>: The Line Break element - HTML - MDN Web Docs - Mozilla
The HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division...
Read more >The Dos and Don'ts of Adding an HTML Line Break
To do a line break in HTML, use the <br> tag. Simply place the tag wherever you want to force a line break....
Read more >HTML Paragraphs and Line Breaks - Tutorial Republic
The <br> tag is used to insert a line break on the web page. Since the <br> is an empty element, so there...
Read more >Add a Line Break in HTML - Tutorial - TeachUcomp, Inc.
To add a line break to your HTML code, you use the <br> tag. The <br> tag does not have an end tag....
Read more >Add breaks and lines to your content - OpenClassrooms
To create line breaks in HTML, use the <br> tag. There is no closing tag necessary. <h3>Toby's Estate</ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think fixed in 7.1.6
@probablyup good recovery and health to you
Because I had time, I have updated my fork properly to make it working and make tests to pass. Notes:
I will make a pull request from https://github.com/buom01/markdown-to-jsx/ to https://github.com/probablyup/markdown-to-jsx/