mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Cascade other style options to children when requested
This commit is contained in:
+2
-2
@@ -23,13 +23,13 @@ func (e *ItemElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) error
|
||||
|
||||
el = &BaseElement{
|
||||
Token: string(node.Literal),
|
||||
Style: Enumeration,
|
||||
Style: tr.style[Enumeration],
|
||||
Prefix: strconv.FormatInt(l+1, 10),
|
||||
}
|
||||
} else {
|
||||
el = &BaseElement{
|
||||
Token: string(node.Literal),
|
||||
Style: Item,
|
||||
Style: tr.style[Item],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user