mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 08:57:14 -04:00
Decode style JSON into a typed struct
This commit is contained in:
+2
-2
@@ -13,12 +13,12 @@ func (e *ItemElement) Render(w io.Writer, ctx RenderContext) error {
|
||||
var el *BaseElement
|
||||
if e.Enumeration > 0 {
|
||||
el = &BaseElement{
|
||||
Style: ctx.style[Enumeration],
|
||||
Style: ctx.styles.Enumeration,
|
||||
Prefix: strconv.FormatInt(int64(e.Enumeration), 10),
|
||||
}
|
||||
} else {
|
||||
el = &BaseElement{
|
||||
Style: ctx.style[Item],
|
||||
Style: ctx.styles.Item,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user