I would like to have markdown support in yaml configuration.
I want to modify the agency theme:
https://raw.githubusercontent.com/getgrav/grav-skeleton-agency-site/develop/pages/01.home/_services/services.md
Here I want to have a word in the text of the header: "Web Security" marked bold. At the moment markdown seems to be not honored in yaml. Is there a way to achieve this without making another sub-sub-page?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Archive
It's not exactly the same, but this plugin does this already:
https://github.com/nunopress/grav-plugin-metadata_extended
It looks to targets MetaData but it might work with other headers, or with a very slight modification it might :)
I found this in the docs: http://learn.getgrav.org/themes/twig-filters-functions#markdown
and it does exactly what I want.
TWIG
{{ page.header.text|markdown}}
So maybe the plugin is not necessary at all?
sorry i completely misread your request i was thinking you wanted twig in the header yes markdown is simpler and you can just use the filter
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1318 | 9 years ago | ||
| 2 | 915 | 9 years ago | ||
| 2 | 4024 | 9 years ago | ||
| 1 | 2900 | 9 years ago | ||
| 3 | 1082 | 9 years ago |