Yes, that works! Very cool! Thanks! (But is it a hack or actually a good solution that should be in the docs?
For one thing I’ve seen @bep advise against using “{{%” due to unpredictable behavior of the blackfriday markdown renderer…)
Trying to avoid changing the template I came up with this (a nested div and three printf:s to avoid a oneliner):
{{ printf "<div class=\"style1\">" | htmlUnescape | safeHTML }}
{{ printf "<div class=\"style2 style3 \">%s</div>" .Inner | htmlUnescape | safeHTML }}
{{ printf "</div>" | htmlUnescape | safeHTML }}
And it works!
It’s crucial to have 1-3 space before the first
{{
. zero or four spaces won’t work. But I’m not sure why!