react-native-draftjs
react-native-draftjs copied to clipboard
markdown
Hello. Is it possible to have the markdown code as source/output (instead of HTML)?
It is possible, instead of the draft-js-import-html & draft-js-export-html, if you use draftjs-export-markdown it is possible. May be we can create a prop to specify the output format.
The code is available at: https://github.com/DaniAkash/react-native-draftjs/blob/master/draftjs-web/src/App.js#L9
Let me know if you can raise PR. Otherwise, I'll implement it in a couple of weeks...
@DaniAkash PR created, #7 Now we can use the editor with HTML or Markdown source code.
@bitlab-code I have been testing it. Works well so far. Will merge it soon after finishing another feature i'm working on.