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

This commit is contained in:
Liang Ding 2022-12-26 19:37:17 +08:00
parent 8365db0517
commit e22573b4eb
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -122,8 +122,8 @@ func NodeStaticContent(node *ast.Node, excludeTypes []string) string {
buf.Write(tokens)
case ast.NodeTextMark:
for _, excludeType := range excludeTypes {
if strings.HasPrefix(excludeType, "TextMark-") {
if n.IsTextMarkType(excludeType[9:]) {
if strings.HasPrefix(excludeType, "NodeTextMark-") {
if n.IsTextMarkType(excludeType[len("NodeTextMark-"):]) {
return ast.WalkContinue
}
}