You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps the "default" exporter should skip hidden / invisible blocks:
Shouldn't this be a paragraph with "Add image"? I guess it's probably because the markdown conversion prioritizes the `img` element even if it has `display: none`. Worth changing to unmount instead of using `display: none`?
Currently, when you add an image, an Image placeholder with "Add Image" is added to the document. When converting to markdown, this now shows "Add Image" as paragraph". I think at the time of creating this issue the export would be "", so "Add Image" is an improvement imo. We could argue the text "Add Image" should also not occur in the export.
Activity
woutervroege commentedon Feb 10, 2026
@YousefED If still relevant, could you clarify what's broken here?
YousefED commentedon Feb 10, 2026
Currently, when you add an image, an Image placeholder with "Add Image" is added to the document. When converting to markdown, this now shows "Add Image" as paragraph". I think at the time of creating this issue the export would be "
", so "Add Image" is an improvement imo. We could argue the text "Add Image" should also not occur in the export.
https://playground.blocknotejs.org/interoperability/converting-blocks-to-md:
woutervroege commentedon Feb 10, 2026
Thanks for clarifying. I'd consider this to be a placeholder value and should therefore not be rendered in the exported markdown.
fix(markdown): skip placeholder text for empty files (#434) (#2719)