|
@@ -27,6 +27,7 @@ import (
|
|
"github.com/88250/gulu"
|
|
"github.com/88250/gulu"
|
|
"github.com/88250/lute/ast"
|
|
"github.com/88250/lute/ast"
|
|
"github.com/88250/lute/editor"
|
|
"github.com/88250/lute/editor"
|
|
|
|
+ "github.com/88250/lute/html"
|
|
"github.com/88250/lute/parse"
|
|
"github.com/88250/lute/parse"
|
|
"github.com/siyuan-note/logging"
|
|
"github.com/siyuan-note/logging"
|
|
"github.com/siyuan-note/siyuan/kernel/sql"
|
|
"github.com/siyuan-note/siyuan/kernel/sql"
|
|
@@ -309,7 +310,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
|
|
if add {
|
|
if add {
|
|
ret = append([]*BlockPath{{
|
|
ret = append([]*BlockPath{{
|
|
ID: id,
|
|
ID: id,
|
|
- Name: name,
|
|
|
|
|
|
+ Name: html.EscapeString(name),
|
|
Type: parent.Type.String(),
|
|
Type: parent.Type.String(),
|
|
SubType: treenode.SubTypeAbbr(parent),
|
|
SubType: treenode.SubTypeAbbr(parent),
|
|
}}, ret...)
|
|
}}, ret...)
|
|
@@ -330,7 +331,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
|
|
name = gulu.Str.SubStr(renderBlockText(b, excludeTypes), maxNameLen)
|
|
name = gulu.Str.SubStr(renderBlockText(b, excludeTypes), maxNameLen)
|
|
ret = append([]*BlockPath{{
|
|
ret = append([]*BlockPath{{
|
|
ID: b.ID,
|
|
ID: b.ID,
|
|
- Name: name,
|
|
|
|
|
|
+ Name: html.EscapeString(name),
|
|
Type: b.Type.String(),
|
|
Type: b.Type.String(),
|
|
SubType: treenode.SubTypeAbbr(b),
|
|
SubType: treenode.SubTypeAbbr(b),
|
|
}}, ret...)
|
|
}}, ret...)
|