Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

markdown #6

Open
bitlab-code opened this issue Sep 24, 2019 · 3 comments · May be fixed by #31
Open

markdown #6

bitlab-code opened this issue Sep 24, 2019 · 3 comments · May be fixed by #31

Comments

@bitlab-code
Copy link

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

@DaniAkash
Copy link
Member

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...

@bitlab-code
Copy link
Author

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

@DaniAkash
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants