tpl: Set RenderingContext.Config in markdownify

This commit is contained in:
Albert Nigmatzianov committed 2017-04-06 21:02:37 +02:00
1 parent 8f09e5f6bc
commit 260b55ea56
1 file changed
+2 -1
+2 -1
View File
@@ -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