Skip to content

Commit

Permalink
Prepare for Goldmark
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bep committed Nov 6, 2019
1 parent 366ee4d commit 5f6b6ec
Show file tree
Hide file tree
Showing 39 changed files with 1,735 additions and 982 deletions.
4 changes: 2 additions & 2 deletions deps/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func New(cfg DepsCfg) (*Deps, error) {
return nil, err
}

contentSpec, err := helpers.NewContentSpec(cfg.Language)
contentSpec, err := helpers.NewContentSpec(cfg.Language, logger, ps.BaseFs.Content.Fs)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -277,7 +277,7 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er
return nil, err
}

d.ContentSpec, err = helpers.NewContentSpec(l)
d.ContentSpec, err = helpers.NewContentSpec(l, d.Log, d.BaseFs.Content.Fs)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 5f6b6ec

Please sign in to comment.