Make document indentable

This commit is contained in:
Christian Muehlhaeuser
2019-11-30 08:07:40 +01:00
parent fca5fd91d6
commit d6d52829bb
5 changed files with 80 additions and 18 deletions
+3 -3
View File
@@ -26,10 +26,10 @@ type Element struct {
func (tr *TermRenderer) NewElement(node *bf.Node) Element {
switch node.Type {
case bf.Document:
de := &DocumentElement{}
return Element{
Renderer: &BaseElement{
Style: Document,
},
Renderer: de,
Finisher: de,
}
case bf.BlockQuote:
return Element{