mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
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
This commit is contained in:
parent
366ee4d8da
commit
5f6b6ec689
39 changed files with 1739 additions and 986 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue