Can config.toml contain markdown?

My config.toml contains the following:

  additionalText = "Templated with [Bulma]( Published with [Hugo]("

It seems as if when referencing {{ .Site.Params.additionalText }} in a page it shows the string “as is”. The markdown is not “rendered”.

Is it possible to use markdown in the config.toml parameters?

Did you try

{{ .Site.Params.additionalText | markdownify }}
1 Like

Thanks a lot. I wasn’t aware of this function. It does the trick. :grinning:

Is there any major difference to {{ markdownify .Site.Params.additionalText }}?

Not in this simple case, but you may want to chain functions …

 {{  .Site.Params.myTitle | title | markdownify }}
1 Like