diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-05-23 16:31:36 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-01 17:59:44 +0200 |
commit | 382c726e63b9adb8d7e38c80e03e404767925eba (patch) | |
tree | bcd0b4d76beec5e3cb03bc7f740a90e228723b60 /markup/internal/attributes/attributes.go | |
parent | 4c46f9400b91a205361210e8eb0c1718784ec8f2 (diff) | |
download | hugo-382c726e63b9adb8d7e38c80e03e404767925eba.tar.gz hugo-382c726e63b9adb8d7e38c80e03e404767925eba.zip |
markup: Fix typo in function and struct names
Diffstat (limited to 'markup/internal/attributes/attributes.go')
-rw-r--r-- | markup/internal/attributes/attributes.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markup/internal/attributes/attributes.go b/markup/internal/attributes/attributes.go index d2c8a860f..91181c78c 100644 --- a/markup/internal/attributes/attributes.go +++ b/markup/internal/attributes/attributes.go @@ -26,7 +26,7 @@ import ( ) // Markdown attributes used as options by the Chroma highlighter. -var chromaHightlightProcessingAttributes = map[string]bool{ +var chromaHighlightProcessingAttributes = map[string]bool{ "anchorLineNos": true, "guessSyntax": true, "hl_Lines": true, @@ -42,8 +42,8 @@ var chromaHightlightProcessingAttributes = map[string]bool{ } func init() { - for k, v := range chromaHightlightProcessingAttributes { - chromaHightlightProcessingAttributes[strings.ToLower(k)] = v + for k, v := range chromaHighlightProcessingAttributes { + chromaHighlightProcessingAttributes[strings.ToLower(k)] = v } } @@ -101,7 +101,7 @@ func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *Attribut panic(fmt.Sprintf("not implemented: %T", vvv)) } - if ownerType == AttributesOwnerCodeBlockChroma && chromaHightlightProcessingAttributes[nameLower] { + if ownerType == AttributesOwnerCodeBlockChroma && chromaHighlightProcessingAttributes[nameLower] { attr := Attribute{Name: string(v.Name), Value: vv} opts = append(opts, attr) } else { |