mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 11:39:57 -04:00
Fix new-line before first paragraph
This commit is contained in:
1 parent
5191ed1f9c
commit
f119aef232
1 file changed
+1
-1
@@ -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