-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
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
Hugo produces Unexpected Goldmark (CommonMark) Behavior #7619
Comments
Why is this a Hugo and not a Goldmark problem? |
I tested with direct usage of Goldmark, and it produced the expected results. |
Interesting find. Removing the hyphen from the custom element name resolves the problem. For example, this works: <customelement>
Foo
</customelement> while this does not:
Per the HTML spec, custom elements must contain a hyphen in the name. |
I just updated to hugo v0.80.0, and it's fixed! |
Confirmed that this is fixed. @HenrySkup, please close this issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi, This is in reference to this thread.
Basically: Hugo is introducing a bug into Goldmark's HTML rendering when it encounters custom HTML elements (e.x.
<custom-element>...</custom-element>
) within markdown -- especially multi-line instances.When my markdown is:
the resulting HTML is :
As per the spec, the expected behavior should be :
Note the lack of any
<p>
tags.The text was updated successfully, but these errors were encountered: