mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
tpl: Set RenderingContext.Config in markdownify
This commit is contained in:
@@ -1392,7 +1392,8 @@ func (t *templateFuncster) markdownify(in interface{}) (template.HTML, error) {
|
|||||||
|
|
||||||
m := t.ContentSpec.RenderBytes(&helpers.RenderingContext{
|
m := t.ContentSpec.RenderBytes(&helpers.RenderingContext{
|
||||||
Cfg: t.Cfg,
|
Cfg: t.Cfg,
|
||||||
Content: []byte(text), PageFmt: "markdown"})
|
Content: []byte(text), PageFmt: "markdown",
|
||||||
|
Config: t.ContentSpec.NewBlackfriday()})
|
||||||
m = bytes.TrimPrefix(m, markdownTrimPrefix)
|
m = bytes.TrimPrefix(m, markdownTrimPrefix)
|
||||||
m = bytes.TrimSuffix(m, markdownTrimSuffix)
|
m = bytes.TrimSuffix(m, markdownTrimSuffix)
|
||||||
return template.HTML(m), nil
|
return template.HTML(m), nil
|
||||||
|
Reference in New Issue
Block a user