mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +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
|
@ -1,6 +1,8 @@
|
|||
package helpers
|
||||
|
||||
import (
|
||||
"github.com/gohugoio/hugo/common/loggers"
|
||||
"github.com/spf13/afero"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"github.com/gohugoio/hugo/hugofs"
|
||||
|
@ -56,7 +58,7 @@ func newTestCfg() *viper.Viper {
|
|||
|
||||
func newTestContentSpec() *ContentSpec {
|
||||
v := viper.New()
|
||||
spec, err := NewContentSpec(v)
|
||||
spec, err := NewContentSpec(v, loggers.NewErrorLogger(), afero.NewMemMapFs())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue