.RenderShortcodes with arbitrary strings

In the initial proposal of #7297 it was propsed to support

{{ $markdownWithRenderedShortcodes := "string with shortcodes" | .RenderShortcodes }}

The actual implementation does not allow for additional parameter and always uses the page’s content.

Are there any plans to add rendering of arbitrary strings?

{{ "{{% foo %}}A **bold** word{{% /foo %}}" | .Page.RenderString | safeHTML }}
1 Like

Thanks Joe for clarification!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.