mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50: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
|
|
@ -469,7 +469,7 @@ func genTreeID(tree *parse.Tree) {
|
|||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if treenode.IsEmptyBlockIAL(n) {
|
||||
if n.IsEmptyBlockIAL() {
|
||||
// 空段落保留
|
||||
p := &ast.Node{Type: ast.NodeParagraph}
|
||||
p.KramdownIAL = parse.Tokens2IAL(n.Tokens)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue