mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 16:37:19 -04:00
Rename Prefix|Suffix & Styled[Prefix|Suffix] => Block[Prefix|Suffix] & Prefix|Suffix
This commit is contained in:
+4
-4
@@ -146,15 +146,15 @@ func (e *BaseElement) Render(w io.Writer, ctx RenderContext) error {
|
||||
|
||||
rules := bs.With(e.Style)
|
||||
// render unstyled prefix/suffix
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.Prefix)
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.BlockPrefix)
|
||||
defer func() {
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.Suffix)
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.BlockSuffix)
|
||||
}()
|
||||
|
||||
// render styled prefix/suffix
|
||||
renderText(w, rules, rules.StyledPrefix)
|
||||
renderText(w, rules, rules.Prefix)
|
||||
defer func() {
|
||||
renderText(w, rules, rules.StyledSuffix)
|
||||
renderText(w, rules, rules.Suffix)
|
||||
}()
|
||||
|
||||
s := e.Token
|
||||
|
||||
Reference in New Issue
Block a user