mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🐛 Parse exceptions when copying and pasting hyperlink whose address contains "
Fix https://github.com/siyuan-note/siyuan/issues/8290
This commit is contained in:
parent
1d2e0821fc
commit
dd07bac040
3 changed files with 5 additions and 9 deletions
|
@ -228,11 +228,11 @@ func NodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
|
|||
if n.IsTextMarkType("a") && includeTextMarkATitleURL {
|
||||
// 搜索不到超链接元素的 URL 和标题 https://github.com/siyuan-note/siyuan/issues/7352
|
||||
if "" != n.TextMarkATitle {
|
||||
buf.WriteString(" " + n.TextMarkATitle)
|
||||
buf.WriteString(" " + html.UnescapeHTMLStr(n.TextMarkATitle))
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(n.TextMarkAHref, "assets/") || includeAssetPath {
|
||||
buf.WriteString(" " + n.TextMarkAHref)
|
||||
buf.WriteString(" " + html.UnescapeHTMLStr(n.TextMarkAHref))
|
||||
}
|
||||
}
|
||||
case ast.NodeBackslash:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue