question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text following line-starting HTML tag gets split into new pargaraph

See original GitHub issue

Been 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:open
  • Created 5 years ago
  • Reactions:7
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
xFEARxcommented, Apr 28, 2022

I think fixed in 7.1.6

1reaction
Buom01commented, May 20, 2019

I’ve been very sick for the past month and am currently in the hospital so you won’t hear from me for a bit

@probablyup good recovery and health to you

Any progress on this? We are facing the same issue.

Because I had time, I have updated my fork properly to make it working and make tests to pass. Notes:

  • It will only works with a predefined list of html elements

I will make a pull request from https://github.com/buom01/markdown-to-jsx/ to https://github.com/probablyup/markdown-to-jsx/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found