mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 22:11:48 -05:00
parent
51d89dab18
commit
1fb17be9a0
3 changed files with 14 additions and 5 deletions
2
go.mod
2
go.mod
|
@ -52,7 +52,7 @@ require (
|
||||||
github.com/spf13/pflag v1.0.3
|
github.com/spf13/pflag v1.0.3
|
||||||
github.com/spf13/viper v1.4.0
|
github.com/spf13/viper v1.4.0
|
||||||
github.com/tdewolff/minify/v2 v2.6.1
|
github.com/tdewolff/minify/v2 v2.6.1
|
||||||
github.com/yuin/goldmark v1.1.17
|
github.com/yuin/goldmark v1.1.18
|
||||||
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5
|
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5
|
||||||
go.opencensus.io v0.22.0 // indirect
|
go.opencensus.io v0.22.0 // indirect
|
||||||
gocloud.dev v0.15.0
|
gocloud.dev v0.15.0
|
||||||
|
|
2
go.sum
2
go.sum
|
@ -347,6 +347,8 @@ github.com/yuin/goldmark v1.1.7 h1:XiwWADvxJeIM1JbXqthrEhDc19hTMui+o+QaY1hGXlk=
|
||||||
github.com/yuin/goldmark v1.1.7/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.7/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.17 h1:t7bl7JAmainKs/Uhmr1XZVkRJsgL2UwdTCtTuYL7RAY=
|
github.com/yuin/goldmark v1.1.17 h1:t7bl7JAmainKs/Uhmr1XZVkRJsgL2UwdTCtTuYL7RAY=
|
||||||
github.com/yuin/goldmark v1.1.17/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.17/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.1.18 h1:0Gpa+rpkhzQehagonRrmf0h1IHidn5DfSLM6oUjx5EU=
|
||||||
|
github.com/yuin/goldmark v1.1.18/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5 h1:QbH7ca1qtgZHrzvcVAEoiJIwBqrXxMOfHYfwZIniIK0=
|
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5 h1:QbH7ca1qtgZHrzvcVAEoiJIwBqrXxMOfHYfwZIniIK0=
|
||||||
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5/go.mod h1:4QGn5rJFOASBa2uK4Q2h3BRTyJqRfsAucPFIipSTcaM=
|
github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5/go.mod h1:4QGn5rJFOASBa2uK4Q2h3BRTyJqRfsAucPFIipSTcaM=
|
||||||
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||||
|
|
|
@ -1644,6 +1644,11 @@ $$$bash {hl_lines=[1]}
|
||||||
MARKDOWN
|
MARKDOWN
|
||||||
$$$
|
$$$
|
||||||
|
|
||||||
|
Link with URL as text
|
||||||
|
|
||||||
|
[https://google.com](https://google.com)
|
||||||
|
|
||||||
|
|
||||||
`
|
`
|
||||||
content = strings.ReplaceAll(content, "$$$", "```")
|
content = strings.ReplaceAll(content, "$$$", "```")
|
||||||
|
|
||||||
|
@ -1652,10 +1657,12 @@ $$$
|
||||||
b.Build(BuildCfg{})
|
b.Build(BuildCfg{})
|
||||||
|
|
||||||
b.AssertFileContent("public/page/index.html",
|
b.AssertFileContent("public/page/index.html",
|
||||||
`<nav id="TableOfContents">`,
|
`<nav id="TableOfContents">
|
||||||
`<li><a href="#shortcode-t-short-in-header">Shortcode T-SHORT in header</a></li>`,
|
<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">SHORT
|
||||||
`<code class="language-bash" data-lang="bash"><span class="hl">MARKDOWN`)
|
<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) {
|
func TestBlackfridayDefault(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue