mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
committed by
Bjørn Erik Pedersen
parent
507f4e356b
commit
4583b41305
@@ -79,7 +79,10 @@ func (ns *Namespace) Highlight(s any, lang string, opts ...any) (template.HTML,
|
||||
}
|
||||
|
||||
hl := ns.deps.ContentSpec.Converters.GetHighlighter()
|
||||
highlighted, _ := hl.Highlight(ss, lang, optsv)
|
||||
highlighted, err := hl.Highlight(ss, lang, optsv)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return template.HTML(highlighted), nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user