🎨 Find-replace support file annotation ref elements https://github.com/siyuan-note/siyuan/issues/13013

This commit is contained in:
Daniel 2024-11-04 10:50:31 +08:00
parent 4e6651c46e
commit fa2f8ed7e5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
16 changed files with 58 additions and 26 deletions

View file

@ -122,7 +122,7 @@ func findReplace(c *gin.Context) {
}
replaceTypes := map[string]bool{}
// text, imgText, imgTitle, imgSrc, aText, aTitle, aHref, code, em, strong, inlineMath, inlineMemo, kbd, mark, s, sub, sup, tag, u
// text, imgText, imgTitle, imgSrc, aText, aTitle, aHref, code, em, strong, inlineMath, inlineMemo, blockRef, fileAnnotationRef kbd, mark, s, sub, sup, tag, u
// docTitle, codeBlock, mathBlock, htmlBlock
if nil != arg["replaceTypes"] {
replaceTypesArg := arg["replaceTypes"].(map[string]interface{})