Skip to content

Commit

Permalink
🐛 Protyle tag content escaping siyuan-note/siyuan#13919
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 31, 2025
1 parent 31747ff commit c228076
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ast/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,9 @@ func (n *Node) Content() (ret string) {
buf.Write(n.Tokens)
case NodeTextMark:
if "" != n.TextMarkTextContent {
if n.IsTextMarkType("code") {
if n.IsTextMarkType("code") || n.IsTextMarkType("tag") {
// 搜索代码内容转义问题 https://github.com/siyuan-note/siyuan/issues/5927
// 搜索标签内容转义问题 https://github.com/siyuan-note/siyuan/issues/13919
buf.WriteString(html.UnescapeString(n.TextMarkTextContent))
} else {
buf.WriteString(n.TextMarkTextContent)
Expand Down
2 changes: 1 addition & 1 deletion javascript/lute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/lute.min.js.map

Large diffs are not rendered by default.

0 comments on commit c228076

Please sign in to comment.