🎨 Add Settings - Search - Index - Asset path Fix https://github.com/siyuan-note/siyuan/issues/8221

This commit is contained in:
Liang Ding 2023-05-10 10:30:05 +08:00
parent 49c5e3be9d
commit 3790507ee2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
16 changed files with 64 additions and 26 deletions

View file

@ -93,7 +93,7 @@ func renderOutline(heading *ast.Node, luteEngine *lute.Lute) (ret string) {
}
func renderBlockText(node *ast.Node, excludeTypes []string) (ret string) {
ret = treenode.NodeStaticContent(node, excludeTypes, false)
ret = treenode.NodeStaticContent(node, excludeTypes, false, false)
ret = strings.TrimSpace(ret)
ret = strings.ReplaceAll(ret, "\n", "")
ret = util.EscapeHTML(ret)
@ -156,7 +156,7 @@ func renderBlockContentByNodes(nodes []*ast.Node) string {
buf := bytes.Buffer{}
for _, n := range subNodes {
buf.WriteString(treenode.NodeStaticContent(n, nil, false))
buf.WriteString(treenode.NodeStaticContent(n, nil, false, false))
}
return buf.String()
}