mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
|
|
@ -46,7 +46,7 @@ func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
|
|||
insertPoint = rootTree.Root.FirstChild
|
||||
if nil == insertPoint {
|
||||
// 如果文档为空,则创建一个空段落作为插入点
|
||||
insertPoint = treenode.NewParagraph()
|
||||
insertPoint = treenode.NewParagraph("")
|
||||
rootTree.Root.AppendChild(insertPoint)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue