diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-28 12:07:23 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-28 14:31:51 +0100 |
commit | 5509954c7e8b0ce8d5ea903b0ab639ea14b69acb (patch) | |
tree | 69d3d5c9bf12927d5005a47a636391677baa9e0a /hugolib/shortcode_test.go | |
parent | 6b59b64f02341c67a3606d2bbb3b9934d6276a74 (diff) |
hugolib: Fix inline shortcode regression
Fixes #6677
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 9d948c807..d57a0d663 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -1101,6 +1101,7 @@ SECOND:{{< myshort.inline "second" />}}:END NEW INLINE: {{< n1.inline "5" >}}W1: {{ seq (.Get 0) }}{{< /n1.inline >}}:END: INLINE IN INNER: {{< outer >}}{{< n2.inline >}}W2: {{ seq 4 }}{{< /n2.inline >}}{{< /outer >}}:END: REUSED INLINE IN INNER: {{< outer >}}{{< n1.inline "3" />}}{{< /outer >}}:END: +## MARKDOWN DELIMITER: {{% mymarkdown.inline %}}**Hugo Rocks!**{{% /mymarkdown.inline %}} ` b.WithContent("page-md-shortcode.md", `--- @@ -1116,10 +1117,12 @@ title: "Hugo Home" b.WithTemplatesAdded("layouts/_default/single.html", ` CONTENT:{{ .Content }} +TOC: {{ .TableOfContents }} `) b.WithTemplatesAdded("layouts/index.html", ` CONTENT:{{ .Content }} +TOC: {{ .TableOfContents }} `) b.WithTemplatesAdded("layouts/shortcodes/outer.html", `Inner: {{ .Inner }}`) @@ -1133,6 +1136,7 @@ CONTENT:{{ .Content }} "NEW INLINE: W1: [1 2 3 4 5]", "INLINE IN INNER: Inner: W2: [1 2 3 4]", "REUSED INLINE IN INNER: Inner: W1: [1 2 3]", + `<li><a href="#markdown-delimiter-hugo-rocks">MARKDOWN DELIMITER: Hugo Rocks!</a></li>`, } if enableInlineShortcodes { |