tpl: Set RenderingContext.Config in markdownify

This commit is contained in:
Albert Nigmatzianov 2017-04-06 19:38:24 +02:00
parent 8f09e5f6bc
commit 260b55ea56

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