mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 08:27:18 -04:00
Render prefix & suffix in the current block's style
This commit is contained in:
+2
-2
@@ -144,9 +144,9 @@ func (e *BaseElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) error
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
rules := tr.blockStack.With(e.Style)
|
rules := tr.blockStack.With(e.Style)
|
||||||
renderText(w, rules, rules.Prefix)
|
renderText(w, tr.blockStack.Current().Style, rules.Prefix)
|
||||||
defer func() {
|
defer func() {
|
||||||
renderText(w, rules, rules.Suffix)
|
renderText(w, tr.blockStack.Current().Style, rules.Suffix)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
s := e.Token
|
s := e.Token
|
||||||
|
|||||||
Reference in New Issue
Block a user