mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
🎨 Improve markdown importing https://github.com/siyuan-note/siyuan/issues/13097 https://github.com/siyuan-note/siyuan/issues/13080
This commit is contained in:
parent
14f5570558
commit
a0491cd4ff
13 changed files with 21 additions and 18 deletions
|
|
@ -341,9 +341,9 @@ func RenderTemplate(p, id string, preview bool) (tree *parse.Tree, dom string, e
|
|||
})
|
||||
for _, n := range nodesNeedAppendChild {
|
||||
if ast.NodeBlockquote == n.Type {
|
||||
n.FirstChild.InsertAfter(treenode.NewParagraph())
|
||||
n.FirstChild.InsertAfter(treenode.NewParagraph(""))
|
||||
} else {
|
||||
n.AppendChild(treenode.NewParagraph())
|
||||
n.AppendChild(treenode.NewParagraph(""))
|
||||
}
|
||||
}
|
||||
for _, n := range unlinks {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue