summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-16 15:55:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-06 19:09:08 +0100
commit5f6b6ec68936ebbbf590894c02a1a3ecad30735f (patch)
treef6c91e225a3f24f51af1bde5cfb5b88515d0665d /hugolib/page_test.go
parent366ee4d8da1c2b0c1751e9bf6d54638439735296 (diff)
Prepare for Goldmark
This commmit prepares for the addition of Goldmark as the new Markdown renderer in Hugo. This introduces a new `markup` package with some common interfaces and each implementation in its own package. See #5963
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 6cf03b895..6b9c4193d 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -18,6 +18,10 @@ import (
"html/template"
"os"
+ "github.com/gohugoio/hugo/markup/rst"
+
+ "github.com/gohugoio/hugo/markup/asciidoc"
+
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/common/loggers"
@@ -378,8 +382,8 @@ func testAllMarkdownEnginesForPages(t *testing.T,
}{
{"md", func() bool { return true }},
{"mmark", func() bool { return true }},
- {"ad", func() bool { return helpers.HasAsciidoc() }},
- {"rst", func() bool { return helpers.HasRst() }},
+ {"ad", func() bool { return asciidoc.Supports() }},
+ {"rst", func() bool { return rst.Supports() }},
}
for _, e := range engines {