diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-04-12 18:11:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-04-12 18:11:24 +0200 |
commit | 39c9ae3108fa1a36f0e2581e6235058ebdea6137 (patch) | |
tree | bae1337066656ef0107edd7f35a9126efa1d6543 /hugolib/shortcode_test.go | |
parent | 2468b10eb35ee3e9871a25416ca0bf627caae851 (diff) |
Revert "Use Node.ID for anchor ID"
This reverts commit cd558958a0c0ecd06f7560a38e27334fe983e0de.
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 68c7f9220..ab764b845 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -168,9 +168,6 @@ func TestInnerSC(t *testing.T) { } func TestInnerSCWithMarkdown(t *testing.T) { - setUp() - defer tearDown() - tem := tpl.New() tem.AddInternalShortcode("inside.html", `<div{{with .Get "class"}} class="{{.}}"{{end}}>{{ .Inner }}</div>`) @@ -179,12 +176,10 @@ func TestInnerSCWithMarkdown(t *testing.T) { [link](http://spf13.com) and text -{{% /inside %}}`, "<div><h1 id=\"more-here:42\">More Here</h1>\n\n<p><a href=\"http://spf13.com\">link</a> and text</p>\n</div>", tem) +{{% /inside %}}`, "<div><h1 id=\"more-here:bec3ed8ba720b9073ab75abcf3ba5d97\">More Here</h1>\n\n<p><a href=\"http://spf13.com\">link</a> and text</p>\n</div>", tem) } func TestInnerSCWithAndWithoutMarkdown(t *testing.T) { - setUp() - defer tearDown() tem := tpl.New() tem.AddInternalShortcode("inside.html", `<div{{with .Get "class"}} class="{{.}}"{{end}}>{{ .Inner }}</div>`) @@ -203,7 +198,7 @@ And then: This is **plain** text. {{< /inside >}} -`, "<div><h1 id=\"more-here:42\">More Here</h1>\n\n<p><a href=\"http://spf13.com\">link</a> and text</p>\n</div>\n\nAnd then:\n\n<div>\n# More Here\n\nThis is **plain** text.\n\n</div>\n", tem) +`, "<div><h1 id=\"more-here:bec3ed8ba720b9073ab75abcf3ba5d97\">More Here</h1>\n\n<p><a href=\"http://spf13.com\">link</a> and text</p>\n</div>\n\nAnd then:\n\n<div>\n# More Here\n\nThis is **plain** text.\n\n</div>\n", tem) } func TestEmbeddedSC(t *testing.T) { |