Skip to content

Commit c884fac

Browse files
committed
when pasting from rich text, do not escape markdown characters
1 parent 40fae13 commit c884fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/editor/plugins/core/markdown-paste.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const getMarkdownFromPaste = withDisposableBridge((bridge, event) => {
2323
// export the resulting state as markdown
2424
let markdown = null
2525
bridge.update(() => {
26-
markdown = $lexicalToMarkdown()
26+
markdown = $lexicalToMarkdown(true)
2727
}, { discrete: true })
2828

2929
return markdown

0 commit comments

Comments
 (0)