Skip to content

mdToDraftjs alt text #66

Description

@SimonGribert

Hello, I'm trying to make the mdToDraftjs work with my editor and markdown code. I have for example the current markdown string of an image:
! [ alttext ] ( pathToImage.jpg )
Now when i run this with mdToDraftjs i get back an entityMap like this:
entityMap: { 0: { data: fileName: "alttext" src: "pathToImage.jpg" url: "pathToImage.jpg" __proto__: Object mutability: "IMMUTABLE" type: "IMAGE" __proto__: } }

Is it possible to add alt: "alttext" to the data object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions