mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add test for shortcode in fenced code block
Which I expected to fail, but it doesn't ... See #2223
This commit is contained in:
parent
e3b162ccc6
commit
cdd6a124c2
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue