Skip to content

Commit

Permalink
调整插入节点时的 URL 扁平化深度
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 10, 2024
1 parent a95a9d9 commit b526d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownEditor/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export const MEditor = observer(
at: store.editor.selection.focus.path!,
});
}
[url].flat(1).forEach((u) => {
[url].flat(2).forEach((u) => {
Transforms.insertNodes(
store.editor,
{
Expand Down

1 comment on commit b526d2c

@vercel
Copy link

@vercel vercel bot commented on b526d2c Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.