Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-05 13:29:22 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-05 13:29:22 +0300
commit8f071fc159ce9a0fc0ea14a73bde8f299bedd109 (patch)
treeaee22932ccdfd1e4ed82e7c242f7f65f17eaf701 /markup/goldmark/convert_test.go
parent469351d5b6a1521069c8d82539476714df16a094 (diff)
markup/goldmark: Make the autoID type config a string
To potentially make room for one more. See #6707
Diffstat (limited to 'markup/goldmark/convert_test.go')
-rw-r--r--markup/goldmark/convert_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/markup/goldmark/convert_test.go b/markup/goldmark/convert_test.go
index b9bf01ef5..3c173fb0a 100644
--- a/markup/goldmark/convert_test.go
+++ b/markup/goldmark/convert_test.go
@@ -17,6 +17,8 @@ import (
"strings"
"testing"
+ "github.com/gohugoio/hugo/markup/goldmark/goldmark_config"
+
"github.com/gohugoio/hugo/markup/highlight"
"github.com/gohugoio/hugo/markup/markup_config"
@@ -169,7 +171,7 @@ func TestConvertAutoIDAsciiOnly(t *testing.T) {
## God is Good: 神真美好
`
mconf := markup_config.Default
- mconf.Goldmark.Parser.AutoHeadingIDAsciiOnly = true
+ mconf.Goldmark.Parser.AutoHeadingIDType = goldmark_config.AutoHeadingIDTypeGitHubAscii
b := convert(c, mconf, content)
got := string(b.Bytes())