This commit is contained in:
Liang Ding 2022-09-15 21:47:20 +08:00
parent f155b89c77
commit c259355f99
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 9 additions and 7 deletions

View file

@ -46,7 +46,9 @@ func AutoSpace(rootID string) (err error) {
if entering {
switch n.Type {
case ast.NodeStrong, ast.NodeEmphasis, ast.NodeStrikethrough, ast.NodeUnderline:
luteEngine.MergeSameSpan(n, n.Type)
luteEngine.MergeSameSpan(n)
case ast.NodeTextMark:
luteEngine.MergeSameTextMark(n)
}
}
return ast.WalkContinue