markup: Fix typo in function and struct names

This commit is contained in:
Oleksandr Redko 2023-05-23 16:31:36 +03:00 committed by Bjørn Erik Pedersen
parent 4c46f9400b
commit 382c726e63
4 changed files with 22 additions and 22 deletions

View file

@ -81,7 +81,7 @@ func (ns *Namespace) Highlight(s any, lang string, opts ...any) (template.HTML,
}
// HighlightCodeBlock highlights a code block on the form received in the codeblock render hooks.
func (ns *Namespace) HighlightCodeBlock(ctx hooks.CodeblockContext, opts ...any) (highlight.HightlightResult, error) {
func (ns *Namespace) HighlightCodeBlock(ctx hooks.CodeblockContext, opts ...any) (highlight.HighlightResult, error) {
var optsv any
if len(opts) > 0 {
optsv = opts[0]