diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-06-26 19:26:11 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-06-26 19:46:29 +0200 |
commit | cdd6a124c2763da57108adebe079baab5958076a (patch) | |
tree | 217174dddecdd1aa49925bbcf3318bc200989177 /hugolib/shortcode_test.go | |
parent | e3b162ccc6aa93fdd00b18795cd138a5b326ec1f (diff) |
Add test for shortcode in fenced code block
Which I expected to fail, but it doesn't ...
See #2223
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index dc3e7f81a..a055d0882 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -463,6 +463,9 @@ e`, {"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)) |