mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 API /api/block/* 支持插入或更新带有块级 IAL 的空段落块 Fix https://github.com/siyuan-note/siyuan/issues/6713
This commit is contained in:
parent
aafbd204db
commit
c0d1451c7b
7 changed files with 10 additions and 29 deletions
|
|
@ -296,7 +296,7 @@ func broadcastTransactions(transactions []*model.Transaction) {
|
|||
func dataBlockDOM(data string, luteEngine *lute.Lute) (ret string) {
|
||||
luteEngine.SetHTMLTag2TextMark(true) // API `/api/block/**` 无法使用 `<u>foo</u>` 与 `<kbd>bar</kbd>` 插入/更新行内元素 https://github.com/siyuan-note/siyuan/issues/6039
|
||||
|
||||
ret = luteEngine.Md2BlockDOM(data)
|
||||
ret = luteEngine.Md2BlockDOM(data, true)
|
||||
if "" == ret {
|
||||
// 使用 API 插入空字符串出现错误 https://github.com/siyuan-note/siyuan/issues/3931
|
||||
blankParagraph := parse.NewParagraph()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue