diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 7926a8203..372e1be9b 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -909,3 +909,36 @@ outputs: ["html", "css", "csv", "json"] } } + +// #9821 +func TestShortcodeMarkdownOutputFormat(t *testing.T) { + t.Parallel() + + files := ` +-- config.toml -- +-- content/p1.md -- +--- +title: "p1" +--- +{{< foo >}} +-- layouts/shortcodes/foo.md -- +§§§ +