mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Rename Prefix|Suffix & Styled[Prefix|Suffix] => Block[Prefix|Suffix] & Prefix|Suffix
This commit is contained in:
+4
-4
@@ -41,8 +41,8 @@ func (e *HeadingElement) Render(w io.Writer, ctx RenderContext) error {
|
||||
}
|
||||
bs.Push(be)
|
||||
|
||||
renderText(w, bs.Parent().Style.StylePrimitive, rules.Prefix)
|
||||
renderText(bs.Current().Block, bs.Current().Style.StylePrimitive, rules.StyledPrefix)
|
||||
renderText(w, bs.Parent().Style.StylePrimitive, rules.BlockPrefix)
|
||||
renderText(bs.Current().Block, bs.Current().Style.StylePrimitive, rules.Prefix)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -81,8 +81,8 @@ func (e *HeadingElement) Finish(w io.Writer, ctx RenderContext) error {
|
||||
return err
|
||||
}
|
||||
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.StyledSuffix)
|
||||
renderText(w, bs.Parent().Style.StylePrimitive, rules.Suffix)
|
||||
renderText(w, bs.Current().Style.StylePrimitive, rules.Suffix)
|
||||
renderText(w, bs.Parent().Style.StylePrimitive, rules.BlockSuffix)
|
||||
|
||||
bs.Current().Block.Reset()
|
||||
bs.Pop()
|
||||
|
||||
Reference in New Issue
Block a user