mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🎨 Support for inserting custom blocks https://github.com/siyuan-note/siyuan/issues/8418
This commit is contained in:
parent
156fc97c54
commit
6950bbaf6d
3 changed files with 6 additions and 7 deletions
|
|
@ -348,7 +348,7 @@ func dataBlockDOM(data string, luteEngine *lute.Lute) (ret string) {
|
|||
if "" == ret {
|
||||
// 使用 API 插入空字符串出现错误 https://github.com/siyuan-note/siyuan/issues/3931
|
||||
blankParagraph := treenode.NewParagraph()
|
||||
ret = lute.RenderNodeBlockDOM(blankParagraph, luteEngine.ParseOptions, luteEngine.RenderOptions)
|
||||
ret = luteEngine.RenderNodeBlockDOM(blankParagraph)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue