hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit cdd6a124c2763da57108adebe079baab5958076a
parent e3b162ccc6aa93fdd00b18795cd138a5b326ec1f
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun, 26 Jun 2016 19:26:11 +0200

Add test for shortcode in fenced code block

Which I expected to fail, but it doesn't ...

See #2223

Diffstat:
Mhugolib/shortcode_test.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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))