From 6312d50f57cfcd955af53eb7b4af58e5b7377880 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 3 Aug 2024 22:46:17 +0800 Subject: [PATCH] :art: Block ref dynamic anchor text no longer contains escape char https://github.com/siyuan-note/siyuan/issues/12187 --- kernel/sql/block.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sql/block.go b/kernel/sql/block.go index 9266d82f0..93b32d64e 100644 --- a/kernel/sql/block.go +++ b/kernel/sql/block.go @@ -24,7 +24,6 @@ import ( "github.com/88250/gulu" "github.com/88250/lute/ast" "github.com/88250/lute/html" - "github.com/88250/lute/lex" "github.com/siyuan-note/siyuan/kernel/av" "github.com/siyuan-note/siyuan/kernel/cache" "github.com/siyuan-note/siyuan/kernel/filesys" @@ -261,8 +260,6 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi buf.WriteString(" " + html.UnescapeHTMLStr(n.TextMarkAHref)) } } - case ast.NodeBackslash: - buf.WriteByte(lex.ItemBackslash) case ast.NodeBackslashContent: buf.Write(n.Tokens) case ast.NodeAudio, ast.NodeVideo: