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:
Hello everyone and thank you for your time.
I’m currently making pages, for example, about-us.
The about.md file has content, mainly shortcodes with custom html.
The problem is, when rendering the site, the final content has automatic <p> tags inserted. It breaks the html and design I’m trying to accomplish.
I’ve tried changing some BF settings to no avail.
Is there any way to tell HUGO to NOT add any automatic paragraph tags?
Hi Rick,
Did you find a solution for this problem?
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.