mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-03 23:47:26 -04:00
Rename Prefix|Suffix & Styled[Prefix|Suffix] => Block[Prefix|Suffix] & Prefix|Suffix
This commit is contained in:
+2
-2
@@ -36,9 +36,9 @@ func (e *CodeBlockElement) Render(w io.Writer, ctx RenderContext) error {
|
||||
}
|
||||
|
||||
if len(theme) > 0 {
|
||||
renderText(iw, bs.Current().Style.StylePrimitive, rules.Prefix)
|
||||
renderText(iw, bs.Current().Style.StylePrimitive, rules.BlockPrefix)
|
||||
err := quick.Highlight(iw, e.Code, e.Language, "terminal16m", theme)
|
||||
renderText(iw, bs.Current().Style.StylePrimitive, rules.Suffix)
|
||||
renderText(iw, bs.Current().Style.StylePrimitive, rules.BlockSuffix)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user