mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 OCR no longer blocks document loading https://github.com/siyuan-note/siyuan/issues/9230
This commit is contained in:
parent
1dc5a371f6
commit
aaf15c77e0
4 changed files with 25 additions and 7 deletions
|
|
@ -800,13 +800,13 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
markdown = treenode.ExportNodeStdMd(n, luteEngine)
|
||||
|
||||
if !treenode.IsNodeOCRed(n) {
|
||||
IndexNodeQueue(n.ID)
|
||||
util.PushNodeOCRQueue(n.ID)
|
||||
}
|
||||
content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
|
||||
fc := treenode.FirstLeafBlock(n)
|
||||
|
||||
if !treenode.IsNodeOCRed(fc) {
|
||||
IndexNodeQueue(fc.ID)
|
||||
util.PushNodeOCRQueue(fc.ID)
|
||||
}
|
||||
fcontent = treenode.NodeStaticContent(fc, nil, true, false)
|
||||
|
||||
|
|
@ -820,7 +820,7 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
markdown = treenode.ExportNodeStdMd(n, luteEngine)
|
||||
|
||||
if !treenode.IsNodeOCRed(n) {
|
||||
IndexNodeQueue(n.ID)
|
||||
util.PushNodeOCRQueue(n.ID)
|
||||
}
|
||||
|
||||
content = treenode.NodeStaticContent(n, nil, true, indexAssetPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue