]> git.maquefel.me Git - brevno-suite/hugo/commit
Add Markdown as an output format
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 May 2022 13:19:02 +0000 (15:19 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 30 May 2022 09:32:55 +0000 (11:32 +0200)
commit322d19a81fedbf423a047bdf286499d2e25d14be
tree0bfff44177d7bd6fde36fa84c45597e6069b3c2a
parent7cb484e121da73b63aab231ba29bb644b5f7965e
Add Markdown as an output format

The motivation behind this is not to make it easier to publish Markdown files, as that sounds unusual.

This is mainly meant for shortcodes that produces Markdown to be inlined.

You would do this by creating shortcodes with `*.md` suffix (e.g. `layouts/shortcodes/myshortcode.md`).

This output format is defined as plain text, and will use Go's much more lenient text template parser.

Updates #9821
hugolib/shortcode_test.go
media/mediaType.go
media/mediaType_test.go
output/outputFormat.go
output/outputFormat_test.go