Shortcode - markdown vs html vs table of content

I see your issue now, and I can reproduce this on my end. After a bit of tinkering, here is a workaround for you.

In your myshort.html shortcode do

{{ printf "<div class=\"style1 style2\">%s</div>" .Inner }}

Then in your template where you render your content do

{{ .Content | htmlUnescape | safeHTML }}
2 Likes