🎨 Find replace supports selecting element types https://github.com/siyuan-note/siyuan/issues/9895

This commit is contained in:
Daniel 2023-12-17 22:15:02 +08:00
parent 40b9c62693
commit 65fbfc5a1f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 16 additions and 16 deletions

View file

@ -83,8 +83,8 @@ func findReplace(c *gin.Context) {
}
replaceTypes := map[string]bool{}
// text, img-text, img-title, img-src, a-text, a-title, a-href, code, em, strong, inline-math, inline-memo, kbd, mark, s, sub, sup, tag, u
// doc-title, code-block, math-block, html-block
// text, imgText, imgTitle, imgSrc, aText, aTitle, aHref, code, em, strong, inlineMath, inlineMemo, kbd, mark, s, sub, sup, tag, u
// docTitle, codeBlock, mathBlock, htmlBlock
if nil != arg["replaceTypes"] {
replaceTypesArg := arg["replaceTypes"].(map[string]interface{})
for t, b := range replaceTypesArg {