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.

Support

Content Wrapped in <p> Tags?

solved

Solved by Aaron Dalton View solution

Started by Jeff 8 years ago · 3 replies · 1831 views
8 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.

8 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
8 years ago

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

8 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 Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago