summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-20 20:37:47 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-22 18:14:04 +0100
commit1fb17be9a008b549d11b622849adbaad01d4023d (patch)
treefbb46f2113c3973d9358cf18c7c3b6363b0a20e0 /hugolib/page_test.go
parent51d89dab1827ae80f9d865f5c38cb5f6a3a11f68 (diff)
deps: Update Goldmark to v1.1.18
Fixes #6649
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 7f8d3cf49..66439a7a5 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -1644,6 +1644,11 @@ $$$bash {hl_lines=[1]}
MARKDOWN
$$$
+Link with URL as text
+
+[https://google.com](https://google.com)
+
+
`
content = strings.ReplaceAll(content, "$$$", "```")
@@ -1652,10 +1657,12 @@ $$$
b.Build(BuildCfg{})
b.AssertFileContent("public/page/index.html",
- `<nav id="TableOfContents">`,
- `<li><a href="#shortcode-t-short-in-header">Shortcode T-SHORT in header</a></li>`,
- `<code class="language-bash" data-lang="bash"><span class="hl">SHORT`,
- `<code class="language-bash" data-lang="bash"><span class="hl">MARKDOWN`)
+ `<nav id="TableOfContents">
+<li><a href="#shortcode-t-short-in-header">Shortcode T-SHORT in header</a></li>
+<code class="language-bash" data-lang="bash"><span class="hl">SHORT
+<code class="language-bash" data-lang="bash"><span class="hl">MARKDOWN
+<p><a href="https://google.com">https://google.com</a></p>
+`)
}
func TestBlackfridayDefault(t *testing.T) {