🎨 Improve kernel API /api/block/insertBlock argument checking https://github.com/siyuan-note/siyuan/issues/10144

This commit is contained in:
Daniel 2024-01-12 19:58:44 +08:00
parent ace4d5c9e0
commit 9db8172e66
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 6 additions and 6 deletions

View file

@ -1009,7 +1009,7 @@ func CreateDocByMd(boxID, p, title, md string, sorts []string) (tree *parse.Tree
}
luteEngine := util.NewLute()
dom, _ := luteEngine.Md2BlockDOM(md, false)
dom := luteEngine.Md2BlockDOM(md, false)
tree, err = createDoc(box.ID, p, title, dom)
if nil != err {
return
@ -1032,7 +1032,7 @@ func CreateWithMarkdown(boxID, hPath, md, parentID, id string) (retID string, er
WaitForWritingFiles()
luteEngine := util.NewLute()
dom, _ := luteEngine.Md2BlockDOM(md, false)
dom := luteEngine.Md2BlockDOM(md, false)
retID, err = createDocsByHPath(box.ID, hPath, dom, parentID, id)
WaitForWritingFiles()
return