mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨 Find replace supports selecting element types https://github.com/siyuan-note/siyuan/issues/9895
This commit is contained in:
parent
40b9c62693
commit
65fbfc5a1f
2 changed files with 16 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue