summaryrefslogtreecommitdiffstats
path: root/markup/internal
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 17:24:10 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 21:54:36 +0100
commit579ff9b6524ed4e55c191ab94251f5a2fe315f68 (patch)
tree0249f3ae723241c4cc2fef7e9ad9ddf06e4bc523 /markup/internal
parent928a89696273b1a5defa0e85115c9bd0e167cbf0 (diff)
markup/goldmark: Improve attributes vs options
Fixes #9571
Diffstat (limited to 'markup/internal')
-rw-r--r--markup/internal/attributes/attributes.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/markup/internal/attributes/attributes.go b/markup/internal/attributes/attributes.go
index 1cce7edd1..a20690c4c 100644
--- a/markup/internal/attributes/attributes.go
+++ b/markup/internal/attributes/attributes.go
@@ -50,7 +50,8 @@ type AttributesOwnerType int
const (
AttributesOwnerGeneral AttributesOwnerType = iota
- AttributesOwnerCodeBlock
+ AttributesOwnerCodeBlockChroma
+ AttributesOwnerCodeBlockCustom
)
func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *AttributesHolder {
@@ -99,7 +100,7 @@ func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *Attribut
panic(fmt.Sprintf("not implemented: %T", vvv))
}
- if ownerType == AttributesOwnerCodeBlock && chromaHightlightProcessingAttributes[nameLower] {
+ if ownerType == AttributesOwnerCodeBlockChroma && chromaHightlightProcessingAttributes[nameLower] {
attr := Attribute{Name: string(v.Name), Value: vv}
opts = append(opts, attr)
} else {