mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 行级元素支持嵌套和交叉 https://github.com/siyuan-note/siyuan/issues/2911
This commit is contained in:
parent
f155b89c77
commit
c259355f99
4 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue