kadikraman / draftjs-md-converter

Converts content from Draft.js blocks to Markdown and vice versa.
https://kadikraman.github.io/draftjs-md-converter/
MIT License
145 stars 37 forks source link

mdToDraftjs alt text #66

Open SimonGribert opened 4 years ago

SimonGribert commented 4 years ago

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?