mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve kernel API /api/block/insertBlock argument checking https://github.com/siyuan-note/siyuan/issues/10144
This commit is contained in:
parent
ace4d5c9e0
commit
9db8172e66
4 changed files with 6 additions and 6 deletions
|
|
@ -489,7 +489,7 @@ func broadcastTransactions(transactions []*model.Transaction) {
|
|||
func dataBlockDOM(data string, luteEngine *lute.Lute) (ret string, err error) {
|
||||
luteEngine.SetHTMLTag2TextMark(true) // API `/api/block/**` 无法使用 `<u>foo</u>` 与 `<kbd>bar</kbd>` 插入/更新行内元素 https://github.com/siyuan-note/siyuan/issues/6039
|
||||
|
||||
ret, tree := luteEngine.Md2BlockDOM(data, true)
|
||||
ret, tree := luteEngine.Md2BlockDOMTree(data, true)
|
||||
if "" == ret {
|
||||
// 使用 API 插入空字符串出现错误 https://github.com/siyuan-note/siyuan/issues/3931
|
||||
blankParagraph := treenode.NewParagraph()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue