fix(editor): should preserve indentation when pasting code with spaces into code block (#11587)

Close [BS-3087](https://linear.app/affine-design/issue/BS-3087/粘贴内容到-code-block-缩进会丢)
This commit is contained in:
donteatfriedrice
2025-04-10 04:48:08 +00:00
parent 5199a74426
commit 0302bd43cb
4 changed files with 71 additions and 8 deletions
@@ -71,6 +71,7 @@ export const paragraphBlockMarkdownAdapterMatcher: BlockMarkdownAdapterMatcher =
'children'
)
.closeNode();
walkerContext.skipAllChildren();
break;
}
case 'heading': {