Skip to content

Commit c3d6145

Browse files
yhoisethsstur
authored andcommitted
Document usage (#153)
1 parent 4e2f620 commit c3d6145

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/draft-js-export-markdown/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ It was extracted from [React-RTE](https://react-rte.org) and placed into a separ
1010

1111
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/).
1212

13+
## How to Use
14+
15+
import { stateToMarkdown } from "draft-js-export-markdown";
16+
const markdown = stateToMarkdown(
17+
this.state.editorState.getCurrentContent()
18+
)
19+
1320
## License
1421

1522
This software is [ISC Licensed](/LICENSE).

0 commit comments

Comments
 (0)