mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
markup: Fix typo in function and struct names
This commit is contained in:
parent
4c46f9400b
commit
382c726e63
4 changed files with 22 additions and 22 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue