Explorar o código

:sparkles: 行级元素支持多重样式类型 https://github.com/siyuan-note/siyuan/issues/2911

Liang Ding %!s(int64=2) %!d(string=hai) anos
pai
achega
02d9245bcf
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      kernel/model/tree.go

+ 5 - 1
kernel/model/tree.go

@@ -90,7 +90,11 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
 			return ast.WalkContinue
 		}
 		if "1" != refIDs[defID] {
-			n.Tokens = []byte(refIDs[defID])
+			if ast.NodeBlockRefID == n.Type {
+				n.Tokens = []byte(refIDs[defID])
+			} else if ast.NodeTextMark == n.Type {
+				n.TextMarkBlockRefID = refIDs[defID]
+			}
 		}
 		return ast.WalkContinue
 	})