HUGO

Inserting html in content markdown?

I’ve looked through the docs and don’t think shortcodes work in this case. I’m looking to add anchors to my content list, as well as the singles page, is there a way to insert raw html? Not just markdown?

Have a look at render hooks:

It is possible to add raw HTML to your markdown, but you need to add a goldmark configuration that enables this and it’s not really clean. Renderhooks are a better way.

[markup.goldmark.renderer]
unsafe = true # Allow HTML in md files