mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Remove the check for !TesseractEnabled when saving OCR recognition results (#11708)
* 去除保存ocr识别结果时对 !TesseractEnabled 的检测 * 🐛 https://github.com/siyuan-note/siyuan/issues/11709 * https://github.com/siyuan-note/siyuan/pull/11708 修改ocr相关接口 * https://github.com/siyuan-note/siyuan/pull/11708 修改前端相关代码 * Update router.go * Update router.go --------- Co-authored-by: Vanessa <lly219@gmail.com>
This commit is contained in:
parent
6efa948859
commit
b590091c9e
5 changed files with 38 additions and 18 deletions
|
|
@ -198,7 +198,7 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
|
|||
var linkDestStr, ocrText string
|
||||
if nil != linkDest {
|
||||
linkDestStr = linkDest.TokensStr()
|
||||
ocrText = util.GetAssetText(linkDestStr, false)
|
||||
ocrText = util.OcrAsset(linkDestStr, false)
|
||||
}
|
||||
|
||||
linkText := n.ChildByType(ast.NodeLinkText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue