Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Content Wrapped in <p> Tags?

solved

Solved by Aaron Dalton View solution

Started by Jeff 9 years ago · 3 replies · 2291 views
9 years ago

In a twig file for a modular that I've created, I'm using

{{ page.content }}

to output the content. The content is being wrapped in paragraph tags. It appears that this is coming from Grav's processing, as the content itself doesn't contain any paragraph tags. Is my understanding that Grav is doing this correct? If so, is there a way to disable it? I want to display the content of the page along with some other text fields as a single paragraph.

9 years ago Solution

page.content still gets processed by Markdown unless otherwise directed. That could be what's happening here. It's hard to say without seeing the files in question.

👍 2
9 years ago

Well, that was simple enough. I turned off Markdown processing, and I was able to make things work as I wished. Thanks!

9 years ago

<p> tags is defining in terms os paragraph. In blog posting we have to use some html tags.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago