mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
markup: Fix typo in function and struct names
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
4c46f9400b
commit
382c726e63
@@ -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 {
|
||||
|
Reference in New Issue
Block a user