mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +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
|
|
@ -30,6 +30,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/88250/lute/html"
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/siyuan-note/logging"
|
||||
|
|
@ -279,8 +280,12 @@ var (
|
|||
NodeOCRQueueLock = sync.Mutex{}
|
||||
)
|
||||
|
||||
func PushNodeOCRQueue(id string) {
|
||||
func PushNodeOCRQueue(n *ast.Node) {
|
||||
if nil == n {
|
||||
return
|
||||
}
|
||||
|
||||
NodeOCRQueueLock.Lock()
|
||||
defer NodeOCRQueueLock.Unlock()
|
||||
NodeOCRQueue = append(NodeOCRQueue, id)
|
||||
NodeOCRQueue = append(NodeOCRQueue, n.ID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue