diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-16 15:55:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-11-06 19:09:08 +0100 |
commit | 5f6b6ec68936ebbbf590894c02a1a3ecad30735f (patch) | |
tree | f6c91e225a3f24f51af1bde5cfb5b88515d0665d /hugolib/page__output.go | |
parent | 366ee4d8da1c2b0c1751e9bf6d54638439735296 (diff) | |
download | hugo-5f6b6ec68936ebbbf590894c02a1a3ecad30735f.tar.gz hugo-5f6b6ec68936ebbbf590894c02a1a3ecad30735f.zip |
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__output.go')
-rw-r--r-- | hugolib/page__output.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hugolib/page__output.go b/hugolib/page__output.go index 619ac0d77..764c46a93 100644 --- a/hugolib/page__output.go +++ b/hugolib/page__output.go @@ -45,8 +45,10 @@ func newPageOutput( paginatorProvider = pag } - var contentProvider page.ContentProvider = page.NopPage - var tableOfContentsProvider page.TableOfContentsProvider = page.NopPage + var ( + contentProvider page.ContentProvider = page.NopPage + tableOfContentsProvider page.TableOfContentsProvider = page.NopPage + ) if cp != nil { contentProvider = cp |