mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 间隔复习界面面包屑不包含标记元素
This commit is contained in:
parent
8365db0517
commit
e22573b4eb
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ func NodeStaticContent(node *ast.Node, excludeTypes []string) string {
|
||||||
buf.Write(tokens)
|
buf.Write(tokens)
|
||||||
case ast.NodeTextMark:
|
case ast.NodeTextMark:
|
||||||
for _, excludeType := range excludeTypes {
|
for _, excludeType := range excludeTypes {
|
||||||
if strings.HasPrefix(excludeType, "TextMark-") {
|
if strings.HasPrefix(excludeType, "NodeTextMark-") {
|
||||||
if n.IsTextMarkType(excludeType[9:]) {
|
if n.IsTextMarkType(excludeType[len("NodeTextMark-"):]) {
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue