Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpuri/draft-js-import-markdown
https://github.com/jpuri/draft-js-import-markdown
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jpuri/draft-js-import-markdown
- Owner: jpuri
- License: isc
- Created: 2016-07-23T10:55:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-14T05:25:55.000Z (over 8 years ago)
- Last Synced: 2024-10-20T04:45:03.227Z (2 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DraftJS: Import Markdown to ContentState
This is a module for [DraftJS](https://github.com/facebook/draft-js) that will convert Markdown to editor content.
It was extracted from [React-RTE](https://react-rte.org) and placed into a separate module for more general use. Hopefully it can be helpful in your projects.
## Installation
npm install --save draft-js-import-markdown
## How to Use
import {stateFromMarkdown} from 'draft-js-import-markdown';
let contentState = stateFromMarkdown(markdown);This project is still under development. If you want to help out, please open an issue to discuss or join us on [Slack](https://draftjs.slack.com/).
## License
This software is [BSD Licensed](/LICENSE).