Render prefix & suffix in the current block's style

This commit is contained in:
Christian Muehlhaeuser
2019-12-07 09:27:31 +01:00
parent 72978312ce
commit 7ef8fa55d1
+2 -2
View File
@@ -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