mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 块操作 API 支持使用 <u> 和 <kbd> 插入对应行级元素 Fix https://github.com/siyuan-note/siyuan/issues/6039
This commit is contained in:
parent
45b26e1f3f
commit
c5f8a838a3
4 changed files with 7 additions and 7 deletions
|
|
@ -290,6 +290,8 @@ 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)
|
||||
if "" == ret {
|
||||
// 使用 API 插入空字符串出现错误 https://github.com/siyuan-note/siyuan/issues/3931
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue