When I create the following code in a MD content file in Hugo
Lorem ipsum dolor sit amet, consectetur adipiscing elit:
- Cras condimentum vestibulum accumsan.
- Duis nibh mauris, fringilla in sapien at, rutrum condimentum est.
- Sed porttitor urna metus, a efficitur justo volutpat sit amet
I get the intended result when the site is rendered
Lorem ipsum dolor sit amet, consectetur adipiscing elit:
- Cras condimentum vestibulum accumsan.
- Duis nibh mauris, fringilla in sapien at, rutrum condimentum est.
- Sed porttitor urna metus, a efficitur justo volutpat sit amet
But I need to store some piece of content in the parameters of the MD file (YAML syntax). So I thought I would use
myvar : "Lorem ipsum dolor sit amet, consectetur adipiscing elit:
- Cras condimentum vestibulum accumsan.
- Duis nibh mauris, fringilla in sapien at, rutrum condimentum est.
- Sed porttitor urna metus, a efficitur justo volutpat sit amet"
But when putting {{ .Params.myvar | markdownify }}
, I get
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae maximus ipsum: - Cras condimentum vestibulum accumsan. - Duis nibh mauris, fringilla in sapien at, rutrum condimentum est. - Sed porttitor urna metus, a efficitur justo volutpat sit amet
I am obviously missing something with the rendering process, but I am stuck. I tried with single / double quotes, I tried using $.Page.RenderString instead of markdownify, but no luck.
Hugo v0.97.2 - No specific Goldmark parameters defined in config.
Anyone has a clue? Thanks in advance!