Browse Source

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

Liang Ding 2 năm trước cách đây
mục cha
commit
e22573b4eb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      kernel/treenode/node.go

+ 2 - 2
kernel/treenode/node.go

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