We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering <div><div><div></div></div></div> Gives this result: </div>
<div><div><div></div></div></div>
</div>
Please try it in the playground. Playground
The text was updated successfully, but these errors were encountered:
Looks like it is caused by the regular expression. But it is too complicated to fix:
const HTML_BLOCK_ELEMENT_R = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i
Can the author fix this issue?
Sorry, something went wrong.
4f752c8
fix: deep html nesting
5657c71
Closes quantizor#520
It resolves the issue mentioned in the original ticket, but failed for test below and generate string:
<div><div><div></div><div></div></div><pre><code></div></code></pre></div> it('', () => { render(compiler(`<div> <div><div></div></div> </div>`)) expect(root.innerHTML).toMatchInlineSnapshot(` <div> <div> <div> </div> </div> </div> `) })
quantizor
No branches or pull requests
Rendering
<div><div><div></div></div></div>
Gives this result:
</div>
Please try it in the playground.
Playground
The text was updated successfully, but these errors were encountered: