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

Allow adding style for lowest level children #47

Closed nsuthar0914 closed 5 years ago

nsuthar0914 commented 5 years ago

Style for inline-code in markdown get skipped in case they are surrounded by other styles due to them not having children. (https://astexplorer.net/#/gist/54261123dce2532e40b7382314d0b8fe/39bcfe0e832e16d9a285508348a810bcee7df3b7)

kadikraman commented 5 years ago

@nsuthar0914 thanks for the PR! I'm trying to keep this library 100% tested, so in order to release this, I would really appreciate if you could add a test that breaks without your change and works with it 🙏

nsuthar0914 commented 5 years ago

@nsuthar0914 thanks for the PR! I'm trying to keep this library 100% tested, so in order to release this, I would really appreciate if you could add a test that breaks without your change and works with it 🙏

done.

kadikraman commented 5 years ago

Released as v1.1.2 🎉