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
+5 -4
View File
@@ -22,10 +22,11 @@ type TermRenderer struct {
BaseURL string
WordWrap int
style map[StyleType]*ElementStyle
document bytes.Buffer
paragraph *bytes.Buffer
table TableElement
style map[StyleType]*ElementStyle
document bytes.Buffer
paragraph *bytes.Buffer
blockStyle StyleStack
table TableElement
}
func Render(in string, stylePath string) ([]byte, error) {