You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extra tag <p> generated if there is empty line above in some cases. #1058
I believe this is normal behavior for commonmark. Certain kinds of HTML Blocks end when there is a blank line. Once it ends, any text will be a normal markdown element, and get processed like normal markdown such as adding <p> tags. The solution is to remove the blank lines.
I believe this is normal behavior for commonmark. Certain kinds of HTML Blocks end when there is a blank line. Once it ends, any text will be a normal markdown element, and get processed like normal markdown such as adding <p> tags. The solution is to remove the blank lines.
But that's inside of HTML snippet. It should be kept untouched.
Activity
ehuss commentedon Oct 30, 2025
I believe this is normal behavior for commonmark. Certain kinds of HTML Blocks end when there is a blank line. Once it ends, any text will be a normal markdown element, and get processed like normal markdown such as adding
<p>tags. The solution is to remove the blank lines.jcyrss commentedon Oct 30, 2025
But that's inside of HTML snippet. It should be kept untouched.
ehuss commentedon Oct 30, 2025
If you're saying it's part of the html attribute string
srcdoc, commonmark specifically does not allow blank lines (attribute value specification).jcyrss commentedon Nov 1, 2025
Not just those in attribute
srcdoc. Even normal HTML snippet, that issue still exists.See this markdown content,
The converting result is as the following