mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 间隔复习界面面包屑不包含标记元素
This commit is contained in:
parent
855b92f4ca
commit
3db25a7259
8 changed files with 38 additions and 17 deletions
|
|
@ -67,8 +67,8 @@ func renderOutline(node *ast.Node, luteEngine *lute.Lute) (ret string) {
|
|||
return
|
||||
}
|
||||
|
||||
func renderBlockText(node *ast.Node) (ret string) {
|
||||
ret = treenode.NodeStaticContent(node)
|
||||
func renderBlockText(node *ast.Node, excludeTypes []string) (ret string) {
|
||||
ret = treenode.NodeStaticContent(node, excludeTypes)
|
||||
ret = strings.TrimSpace(ret)
|
||||
ret = strings.ReplaceAll(ret, "\n", "")
|
||||
ret = html.EscapeString(ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue