ref: cdd6a124c2763da57108adebe079baab5958076a
parent: e3b162ccc6aa93fdd00b18795cd138a5b326ec1f
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Sun Jun 26 15:26:11 EDT 2016
Add test for shortcode in fenced code block Which I expected to fail, but it doesn't ... See #2223
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -463,6 +463,9 @@
{"sect/doc5.md", `# {{< b >}}
## {{% c %}}`,
filepath.FromSlash("sect/doc5/index.html"), "\n\n<h1 id=\"hugoshortcode-1\">b</h1>\n\n<h2 id=\"hugoshortcode-2\">c</h2>\n"},
+ {"sect/doc6.md", "\n```bash\n{{< b >}}\n{{% c %}}\n```\n",
+ filepath.FromSlash("sect/doc6/index.html"),
+ "<pre><code class=\"language-bash\">b\nc\n</code></pre>\n"},
}
sources := make([]source.ByteSource, len(tests))
--
⑨