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

Paragraph / Markdown not working

Started by Muut Archive 9 years ago · 3 replies · 946 views
9 years ago

For some reason markdown is not being parsed from my field in the admin panel.

So all my text is on one line, and not split into paragraphs after creating a new line. Is there something I'm missing?

Thanks

9 years ago

Are you using the standard content field, or do you have a custom blueprint and template set up with additional fields?
If the latter is the case, you probably need to use the markdown filter in the template. Something like this:

TWIG
{{ page.header.field|markdown }}

Also see the documentation: https://learn.getgrav.org/themes/twig-filters-functions#markdown

Hope this helps!

9 years ago

Well I feel stupid now lol - didn't even see that, and was looking for ages! Thanks so much, it works fine now :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago