diff options
author | Albert Nigmatzianov <[email protected]> | 2017-04-06 19:38:24 +0200 |
---|---|---|
committer | Albert Nigmatzianov <[email protected]> | 2017-04-06 21:02:37 +0200 |
commit | 260b55ea56ea8998431aca2b80d2b1e47c6a31c3 (patch) | |
tree | 280bc86e74190d4816a51e8d7df71460b46d7988 /tpl/tplimpl/template_funcs.go | |
parent | 8f09e5f6bcba0dbf904a85f9e2d904d0a2dad218 (diff) | |
download | hugo-260b55ea56ea8998431aca2b80d2b1e47c6a31c3.tar.gz hugo-260b55ea56ea8998431aca2b80d2b1e47c6a31c3.zip |
tpl: Set RenderingContext.Config in markdownify
Diffstat (limited to 'tpl/tplimpl/template_funcs.go')
-rw-r--r-- | tpl/tplimpl/template_funcs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/tplimpl/template_funcs.go b/tpl/tplimpl/template_funcs.go index 11ab4511c..273753388 100644 --- a/tpl/tplimpl/template_funcs.go +++ b/tpl/tplimpl/template_funcs.go @@ -1392,7 +1392,8 @@ func (t *templateFuncster) markdownify(in interface{}) (template.HTML, error) { m := t.ContentSpec.RenderBytes(&helpers.RenderingContext{ Cfg: t.Cfg, - Content: []byte(text), PageFmt: "markdown"}) + Content: []byte(text), PageFmt: "markdown", + Config: t.ContentSpec.NewBlackfriday()}) m = bytes.TrimPrefix(m, markdownTrimPrefix) m = bytes.TrimSuffix(m, markdownTrimSuffix) return template.HTML(m), nil |