react-native-draftjs icon indicating copy to clipboard operation
react-native-draftjs copied to clipboard

markdown

Open bitlab-code opened this issue 5 years ago • 3 comments

Hello. Is it possible to have the markdown code as source/output (instead of HTML)?

bitlab-code avatar Sep 24 '19 18:09 bitlab-code

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 avatar Sep 26 '19 07:09 DaniAkash

@DaniAkash PR created, #7 Now we can use the editor with HTML or Markdown source code.

bitlab-code avatar Sep 26 '19 17:09 bitlab-code

@bitlab-code I have been testing it. Works well so far. Will merge it soon after finishing another feature i'm working on.

DaniAkash avatar Oct 01 '19 06:10 DaniAkash