🎨 间隔复习界面面包屑不包含标记元素

This commit is contained in:
Liang Ding 2022-12-26 19:28:47 +08:00
parent 855b92f4ca
commit 3db25a7259
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 38 additions and 17 deletions

View file

@ -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)