Skip to content

Alt text not preserved when converting a Markdown image to a Block #1882

@bgreenlee

Description

@bgreenlee

Describe the bug

Given the following Markdown:

![Sample image](https://picsum.photos/200)

The "Sample image" is the alt text and should be preserved as such. However the Block HTML for this looks like:

<img class="bn-visual-media" src="https://picsum.photos/200" alt="BlockNote image" contenteditable="false" draggable="false">

To Reproduce

This can be reproduced in the BlockNote Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions