Output to regular markdown after processing short codes

Hugo markdown uses shortcodes to perform a lot of magic, so reordering a page will still work for links, page content does not need to be copied over thanks to include and such.

However I also need hugo to create vanilla markdown documents where the includes and refs etc are replaced with the real values…

Is there official - or even unofficial because someone implemented it themselves - support for this already?

This question has been asked 3 years ago, however maybe the answer has evolved?


Have a look at Custom Output Formats | Hugo

@pointyfar I saw that page, it does not describe output in markdown…
Thanks for taking a look though.

Hence you need to create a new custom output format.

You also need to configure a custom mediaType, i.e. "text/markdown" or something similar.