mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve find-replace of image/link elements https://github.com/siyuan-note/siyuan/issues/14049
This commit is contained in:
parent
c36b2a4fdc
commit
dbbd250894
1 changed files with 6 additions and 1 deletions
|
|
@ -688,7 +688,12 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
}
|
||||
|
||||
if "" == n.TextMarkAHref {
|
||||
unlinks = append(unlinks, n)
|
||||
if "" == n.TextMarkTextContent {
|
||||
unlinks = append(unlinks, n)
|
||||
} else {
|
||||
n.Type = ast.NodeText
|
||||
n.Tokens = []byte(n.TextMarkTextContent)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if n.IsTextMarkType("em") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue