mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
🎨 Improve list item, super block and blockquote backlink propagation https://github.com/siyuan-note/siyuan/issues/13776
This commit is contained in:
parent
87f3047174
commit
970b82a718
2 changed files with 10 additions and 4 deletions
|
|
@ -1114,6 +1114,14 @@ func getDoc(c *gin.Context) {
|
|||
if nil != isBacklinkArg {
|
||||
isBacklink = isBacklinkArg.(bool)
|
||||
}
|
||||
originalRefBlockIDsArg := arg["originalRefBlockIDs"]
|
||||
originalRefBlockIDs := map[string]string{}
|
||||
if nil != originalRefBlockIDsArg {
|
||||
m := originalRefBlockIDsArg.(map[string]interface{})
|
||||
for k, v := range m {
|
||||
originalRefBlockIDs[k] = v.(string)
|
||||
}
|
||||
}
|
||||
highlightArg := arg["highlight"]
|
||||
highlight := true
|
||||
if nil != highlightArg {
|
||||
|
|
@ -1121,7 +1129,7 @@ func getDoc(c *gin.Context) {
|
|||
}
|
||||
|
||||
blockCount, content, parentID, parent2ID, rootID, typ, eof, scroll, boxID, docPath, isBacklinkExpand, keywords, err :=
|
||||
model.GetDoc(startID, endID, id, index, query, queryTypes, queryMethod, mode, size, isBacklink, highlight)
|
||||
model.GetDoc(startID, endID, id, index, query, queryTypes, queryMethod, mode, size, isBacklink, originalRefBlockIDs, highlight)
|
||||
if model.ErrBlockNotFound == err {
|
||||
ret.Code = 3
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue