mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 23:11:38 +00: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{
|
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
|
||||||
|
|
Loading…
Reference in a new issue