diff options
Diffstat (limited to 'tpl/transform/transform.go')
-rw-r--r-- | tpl/transform/transform.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/transform/transform.go b/tpl/transform/transform.go index 8d404f5a7..f1ffa77ae 100644 --- a/tpl/transform/transform.go +++ b/tpl/transform/transform.go @@ -55,7 +55,8 @@ func (ns *Namespace) Highlight(s interface{}, lang, opts string) (template.HTML, return "", err } - return template.HTML(helpers.Highlight(ns.deps.Cfg, html.UnescapeString(ss), lang, opts)), nil + highlighted, _ := ns.deps.ContentSpec.Highlight(html.UnescapeString(ss), lang, opts) + return template.HTML(highlighted), nil } // HTMLEscape returns a copy of s with reserved HTML characters escaped. |