ref: 260b55ea56ea8998431aca2b80d2b1e47c6a31c3
parent: 8f09e5f6bcba0dbf904a85f9e2d904d0a2dad218
author: Albert Nigmatzianov <[email protected]>
date: Thu Apr 6 15:38:24 EDT 2017
tpl: Set RenderingContext.Config in markdownify
--- a/tpl/tplimpl/template_funcs.go
+++ b/tpl/tplimpl/template_funcs.go
@@ -1392,7 +1392,8 @@
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