Rosey / markdown-draft-js

A tool to convert content created in DraftJS to markdown and vice versa.
https://rosey.github.io/markdown-draft-js/
MIT License
318 stars 69 forks source link

Update README.md #121

Closed abdellani closed 4 years ago

abdellani commented 4 years ago

Hi, When I tried the example in the readme, I noticed the markdownString is always missing the last letter of the original text. This is a small suggestion to fix that :) Thanks for sharing this project.

Rosey commented 4 years ago

Thanks for noticing this! I just updated the README, I ended up doing it slightly differently, instead of in the setState callback I just used editorState directly, as it seemed less convoluted to me than having nested onchange/setstate callbacks. So I'm closing this PR but the issue you brought up should be resolved now in the README, and thank you for your PR 🙂