-
-
Notifications
You must be signed in to change notification settings - Fork 598
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
When uploading a video to the editor, it renders correctly and exports to markdown as expected. However, when refreshing the page and parsing the same markdown back to blocks, the video disappears and only the thumbnail image remains.
Steps to Reproduce
- Upload a video file to the BlockNote editor
- Export content using
editor.blocksToMarkdownLossy(editor.document)
- Refresh the page
- Parse the markdown back using
editor.tryParseMarkdownToBlocks(content)
- Replace blocks with
editor.replaceBlocks(editor.document, blocks)
Expected Behavior
The video should be preserved and rendered correctly after parsing markdown back to blocks, maintaining the same functionality as before the page refresh.
Actual Behavior
The video disappears and only the thumbnail image is displayed. The markdown link reference to the video URL is lost during the parsing process.
Code Samples
Export (works correctly):
const markdown = await editor.blocksToMarkdownLossy(editor.document)
Import (loses video):
const blocks = await editor.tryParseMarkdownToBlocks(content);
editor.replaceBlocks(editor.document, blocks);
Markdown Output Comparison
After initial upload (correct):
asdasd
[](https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4)

After page refresh and re-import (incorrect):
asdasd


Environment
- BlockNote version:
^0.34.0
- Browser: Arc Browser
- OS: Mac OS Sonoma
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working