mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Blockquote in list turn into paragraph causes internal error https://github.com/siyuan-note/siyuan/issues/9920
This commit is contained in:
parent
afef0d799e
commit
106ffb292b
3 changed files with 12 additions and 10 deletions
|
|
@ -798,15 +798,14 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
length = utf8.RuneCountInString(fcontent)
|
||||
} else if n.IsContainerBlock() {
|
||||
markdown = treenode.ExportNodeStdMd(n, luteEngine)
|
||||
|
||||
if !treenode.IsNodeOCRed(n) {
|
||||
util.PushNodeOCRQueue(n.ID)
|
||||
util.PushNodeOCRQueue(n)
|
||||
}
|
||||
content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
|
||||
fc := treenode.FirstLeafBlock(n)
|
||||
|
||||
fc := treenode.FirstLeafBlock(n)
|
||||
if !treenode.IsNodeOCRed(fc) {
|
||||
util.PushNodeOCRQueue(fc.ID)
|
||||
util.PushNodeOCRQueue(fc)
|
||||
}
|
||||
fcontent = treenode.NodeStaticContent(fc, nil, true, false)
|
||||
|
||||
|
|
@ -818,11 +817,9 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
length = utf8.RuneCountInString(fcontent)
|
||||
} else {
|
||||
markdown = treenode.ExportNodeStdMd(n, luteEngine)
|
||||
|
||||
if !treenode.IsNodeOCRed(n) {
|
||||
util.PushNodeOCRQueue(n.ID)
|
||||
util.PushNodeOCRQueue(n)
|
||||
}
|
||||
|
||||
content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
|
||||
|
||||
parentID = n.Parent.ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue