Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Html code gets wrapped in `<p>` tags

Started by Muut Archive 9 years ago · 1 replies · 518 views
9 years ago

Hey,

I'm trying to add some HTML into the body of the .md file in a blog post, but the html always appears literally (tags and all, like it was preformatted) on the page. Inspection revealed it gets wrapped into <p> blocks, like very other paragraph.

E.g, this:

Blablabla blablabla
<tag>Some html content</tag>
Blablablablabla

where "tag" is a placeholder for any generic html tag, it becomes

HTML
<p>Blablabla blablabla</p>
<p><tag>Some html content</tag></p>
<p>Blablablablabla</p>

AFAIK it's supposed to work, but it just doesn't. Markdown extra is enabled.

Any ideas?

9 years ago

Got it sorted. For some reason "escape markup" was also enabled. Still confused why, is this supposed to be the default behaviour? Because all documentation talks about including HTML like the norm?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1296 9 years ago
Archive · by Muut Archive, 9 years ago
2 890 9 years ago
Archive · by Muut Archive, 9 years ago
2 4019 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1078 9 years ago