mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve backlink doc title escaping
This commit is contained in:
parent
a5ea85f872
commit
8639955ff0
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ func toFlatTree(blocks []*Block, baseDepth int, typ string, tree *parse.Tree) (r
|
||||||
treeNode := &Path{
|
treeNode := &Path{
|
||||||
ID: root.ID,
|
ID: root.ID,
|
||||||
Box: root.Box,
|
Box: root.Box,
|
||||||
Name: util.EscapeHTML(path.Base(root.HPath)),
|
Name: path.Base(root.HPath),
|
||||||
NodeType: root.Type,
|
NodeType: root.Type,
|
||||||
Type: typ,
|
Type: typ,
|
||||||
SubType: root.SubType,
|
SubType: root.SubType,
|
||||||
|
|
@ -196,7 +196,7 @@ func toSubTree(blocks []*Block, keyword string) (ret []*Path) {
|
||||||
treeNode := &Path{
|
treeNode := &Path{
|
||||||
ID: root.ID,
|
ID: root.ID,
|
||||||
Box: root.Box,
|
Box: root.Box,
|
||||||
Name: util.EscapeHTML(path.Base(root.HPath)),
|
Name: path.Base(root.HPath),
|
||||||
Type: "backlink",
|
Type: "backlink",
|
||||||
NodeType: "NodeDocument",
|
NodeType: "NodeDocument",
|
||||||
SubType: root.SubType,
|
SubType: root.SubType,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue