mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 16:37:19 -04:00
Fix new-line before first paragraph
This commit is contained in:
@@ -110,7 +110,7 @@ func NewElement(node *bf.Node) Element {
|
|||||||
}
|
}
|
||||||
case bf.Paragraph:
|
case bf.Paragraph:
|
||||||
pre := "\n"
|
pre := "\n"
|
||||||
if node.Parent != nil && node.Parent.Type == bf.Item {
|
if node.Prev == nil || (node.Parent != nil && node.Parent.Type == bf.Item) {
|
||||||
pre = ""
|
pre = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user