All content of page gets wrapped in a paragraph (<p></p>)

Hello,

I’m just starting to learn about Hugo and Markdown.

I want to use HTML in Markdown files, but when I test a page the whole content is wrapped in a paragraph <p></p>

Example:

<p><h1>This is the title of the page</h1>
<p>This is the description of the page.</p>
<p>This is another paragraph.</p></p>

How can I fix this?

I confirm this happens to me too. It’s a known problem. Please see:

Hi Rick,

Did you find a solution for this problem?

No, I didn’t.

Is this a Hugo issue? or is the issue related to Markdown? or both? Will other static site generators like Jekyll for example have the same problem?

If I use HTML files instead of Markdown files then the paragraphs don’t wrap the content. And with HTML files I can still use Frontmatter to include the meta tags. For me it’s fine because I don’t care if I need to use HTML for my content, because I’m used to work this way.

I don’t really know but, it appears from the thread I linked that it’s a blackfriday issue, in the end.