This is the most frequently asked question in Newest ‘hugo’ Questions – Stack Overflow within the last 5 days!ยน
In your Hugo config file, you need to tell the default Markdown renderer, which is Goldmark, to render raw HTML. If you use a config.yaml, use this:
markup:
goldmark:
renderer:
unsafe: true
If you use a config.toml, use this:
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
I wrote about this on my website in http://www.ii.com/hugo-tips-fragments/#_markup.