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.

General

Markdown content rendered as escaped HTML

Solved by Ole Vik View solution

Started by Frederick Yocum 5 years ago · 4 replies · 1314 views
5 years ago

Team

I have a clean install of the latest version of Grav running locally to which I added my existing markdown and image files and my adapted theme. The twig content is rendering fine, but the content from the markdown files is showing in the rendered page as escaped HTML.

The same content and theme is running happily on the hosted version ( Grav v1.6.30 - Admin v1.9.18) of the website.

This feels like a setting somewhere which has gone awry, but I can't find it . . . .

5 years ago

@OleVik Thanks, I will take a look at the documentation. Glad I chose to upgrade the local server and the not the the public facing site.

5 years ago

It was the first listing in Common Issues

HTML is displayed as code on your site rather than being rendered as HTML as intended.

{{ page.content|raw }} Solved the problem.

Note to self: Read documentation before upgrading.

Many thanks

5 years ago

Well, the documentation can be rather long. The best approach is always to upgrade locally first, then push the changes to production. So you were going about it the right way.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 125 19 hours ago
General · by pamtbaau, 1 day ago
1 89 24 hours ago
General · by Andy Miller, 2 days ago
0 73 2 days ago
General · by Marcel, 12 months ago
6 382 5 days ago
General · by Duc , 6 days ago
3 69 6 days ago