Skip to content

Commit

Permalink
✨ 行级元素支持多重样式类型 siyuan-note#2911
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 authored and leolee9086 committed Oct 4, 2022
1 parent d78c470 commit 4b7e196
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/model/tree.go
Expand Up @@ -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
})
Expand Down

0 comments on commit 4b7e196

Please sign in to comment.