We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8c5c5 commit c67a365Copy full SHA for c67a365
packages/core/src/editor/BlockNoteEditor.ts
@@ -1869,6 +1869,9 @@ export class BlockNoteEditor<
1869
* @param markdown The markdown to paste.
1870
*/
1871
public async pasteMarkdown(markdown: string) {
1872
- return this.pasteHTML(await markdownToHTML(markdown));
+ const html = await markdownToHTML(markdown);
1873
+ const blocks = await this.tryParseHTMLToBlocks(html);
1874
+ const htmlContent = await this.blocksToHTMLLossy(blocks);
1875
+ return this.pasteHTML(htmlContent);
1876
}
1877
0 commit comments