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

Fix extra styles type #75

Closed KenanYusuf closed 2 years ago

KenanYusuf commented 2 years ago

This PR fixes the type declaration for the extraStyles param on the mdToDraftjs export - had to upgrade @textlint/markdown-to-ast to get the AST node types, tests passing and the demo still seems to work as expected.

Also added an example of how to use extra styles to the readme.

Thanks for the great library @kadikraman 🙌

kadikraman commented 2 years ago

Published in v1.5.2 🚀