Questions about .RenderString

It took me a little tinkering until I learned that .RenderString must be called on the actual Page object and not the string itself, i.e. switching my shortcodes from {{ .Text | markdownify }} to {{ $.Page.RenderString .Text }}.

Haven’t used it on a template but it should be something similar, like {{ .Page.RenderString .Content }}? Trial and error always gets me there eventually :wink:

1 Like