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?
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?