mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-31 06:06:41 -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)
|
||||
renderText(w, rules, rules.Prefix)
|
||||
renderText(w, tr.blockStack.Current().Style, rules.Prefix)
|
||||
defer func() {
|
||||
renderText(w, rules, rules.Suffix)
|
||||
renderText(w, tr.blockStack.Current().Style, rules.Suffix)
|
||||
}()
|
||||
|
||||
s := e.Token
|
||||
|
||||
Reference in New Issue
Block a user