-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wrong output If a first character in a paragraph of the HTML is <strong> #628
Comments
I've encountered the same problem, and I believe it applies not only to
It also started happening only from |
Not just "inline tags". Rather, anything that looks like this:
When a text character is placed before the first child will render without issue:
|
There is a bug, where if the first character in
<p>
in HTML is<strong>
, it outputs wrong HTML. Basically I am trying to use the library to convert string HTML from RichText into a raw HTML in my page.this outputs to:
<p><strong>Test</strong><p>asda sdasd asd asd asd as d</p></p>
instead of
<p><strong>Test</strong>asda sdasd asd asd asd as d</p>
It basically nests the paragraphs which is invalid and creates errors in console.
If I change it to:
<p>T<strong>est</strong>asda sdasd asd asd asd as d</p>
it correctly outputs to:
<p>T<strong>est</strong>asda sdasd asd asd asd as d</p>
The text was updated successfully, but these errors were encountered: