Cascade Heading style into new H1, H2, ..., H6 styles

This commit is contained in:
Christian Muehlhaeuser
2019-12-05 14:05:35 +01:00
parent 12d8828d4b
commit eaed263d06
5 changed files with 58 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func (e *ParagraphElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer)
_, _ = w.Write([]byte("\n"))
be := BlockElement{
Block: &bytes.Buffer{},
Style: cascadeStyle(tr.blockStack.Current().Style, rules),
Style: cascadeStyle(tr.blockStack.Current().Style, rules, true),
}
tr.blockStack.Push(be)
}