mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -04:00
Fix prefixing first paragraph with a newline, when there's no previous sibling node
This commit is contained in:
+3
-1
@@ -62,7 +62,9 @@ func (tr *ANSIRenderer) NewElement(node ast.Node, source []byte) Element {
|
||||
return Element{}
|
||||
}
|
||||
return Element{
|
||||
Renderer: &ParagraphElement{},
|
||||
Renderer: &ParagraphElement{
|
||||
First: node.PreviousSibling() == nil,
|
||||
},
|
||||
Finisher: &ParagraphElement{},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user