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

Add support for href to links #82

Closed Rosey closed 6 years ago

Rosey commented 6 years ago

in draft.js’s link example they use URL for link entities which is what this lib was using as well, however I’ve come across some plugins which use href instead, which seems like a resonable value as well.

Soooo I have added support for both values. If a user wants some other way more custom value that doesn’t make sense I might suggest they define their own BlockEntity and pass it in as an option (see the README).