-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Markdownify Not Closing A Paragraph #11698
Comments
Workaround... the
Is rendered to: <h2 id="title">Title</h2>
<p>Text</p> The This is the bit that does the |
Yeah, we should fix this. This works fine:
So this should too:
It also breaks with markdown attributes.
Rendered to:
Since the user specified an attribute, they must want a paragraph. So it should be:
|
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Description
When I use markdownify on a title and paragraph, the resulting HTML leaves the paragraph unclosed.
So using
.Page.RenderString
ormarkdownify
on "# My Title\nparagraph" results in:Minimal example: https://github.com/MarkRosemaker/hugo-bug-markdownify
Draft PR with failing test: #11699
The text was updated successfully, but these errors were encountered: