toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.08k stars 352 forks source link

Exporting markdown using MarkdownAdapter which contains image gives error #7466

Open upender7270 opened 3 days ago

upender7270 commented 3 days ago

I am trying to export block suite data as markdown, I am getting the below error if I place an image in the editor.

Screenshot from 2024-07-01 17-38-37

Implementation

const markdownAdapter = new MarkdownAdapter(docJob)
markdownAdapter.applyConfigs(docJob.adapterConfigs)
const markdown = await markdownAdapter.fromDoc(editor.doc)
console.log('markdown', markdown)