How to enable raw html in Hugo?

Sat, Jul 18, 2020 One-minute read

If you would like to add some custom html in Markdown file in Hugo, because for example you want to embed something, you have to add below lines in config.toml file:

1
2
3
4
[markup]
    [markup.goldmark]
        [markup.goldmark.renderer]
            unsafe = true

Helpful resource: Raw HTML getting omitted in 0.60.0

Newsletter

Thank you for visiting my website. I hope you enjoyed content which I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!

  • By clicking button below you agree to send you news from my blog, about my products and services. Above data are stored in Mailchimp and I do not share them to anyone. More info you can find in privacy policy.