Closed robotmonkey closed 7 years ago
@robotmonkey I'm bumping into this as well. I have isolated it to the fixWhitespacesInsideStyle
function at this line
https://github.com/kadikraman/draftjs-md-converter/blob/master/src/draftjsToMd.js#L86
Essentially text.indexOf(bodyT)
is finding the first instance of the string but the assumption that its the first occurence is incorrect. Would love to see a fix
Hi @robotmonkey - which version of Draft.js are you using?
Thank you @rickhanlonii I've published the change, the new version is 0.1.1
Hi @kadikraman, we're noticing a bug where when you use multiple (at least 2) instances of the same word on a single line, and if one of those instances is formatted using bold, italics, or bold & italics, you will see duplicatation of text and some formatting issues - https://cl.ly/iOSO.
To reproduce this:
First bold is fine, second bold will cause issues.
(Make one of the bold instances BOLDFirst bold is fine, second bold is fine, second **bold will cause issues.
Please let me know if I can follow up with more details. Thanks.