mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl: Set RenderingContext.Config in markdownify
This commit is contained in:
parent
8f09e5f6bc
commit
260b55ea56
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue