Children in a Document or Paragraph element inherit their parent's color styles

This commit is contained in:
Christian Muehlhaeuser
2019-12-02 15:23:45 +01:00
parent bbd7dfecce
commit d0b616b12b
4 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (e *BaseElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) error
}
}()
rules := tr.style[e.Style]
rules := cascadeStyles(tr.blockStyle, tr.style[e.Style])
if rules == nil {
_, _ = w.Write([]byte(e.Token))
return nil