# draft-js-export-markdown

> DraftJS: Export ContentState to Markdown

Latest version **1.4.0** (published 2019-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install draft-js-export-markdown
pnpm add draft-js-export-markdown
yarn add draft-js-export-markdown
bun add draft-js-export-markdown
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2019-07-29 |
| First published | 2016-03-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 880 |
| Author | sstur@me.com |
| Maintainers | sstur |
| Keywords | draft-js, export-markdown |

## Links

- npm: https://www.npmjs.com/package/draft-js-export-markdown
- Repository: https://github.com/sstur/draft-js-utils/tree/master/packages/draft-js-export-markdown
- Homepage: https://github.com/sstur/draft-js-utils/blob/master/packages/draft-js-export-markdown/README.md
- Issues: https://github.com/sstur/draft-js-utils/issues
- npm.io page: https://npm.io/package/draft-js-export-markdown

## Dependencies (1)

- [draft-js-utils](https://npm.io/package/draft-js-utils.md) ^1.4.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.4.0 (latest) — 2019-07-29
- 1.3.3 — 2019-02-28
- 1.3.2 — 2019-02-27
- 1.3.0 — 2019-01-28
- 1.2.2 — 2019-01-14
- 1.2.1 — 2019-01-14
- 1.2.0 — 2017-09-19
- 1.1.0 — 2017-09-07
- 1.0.2 — 2017-09-03
- 1.0.1 — 2017-09-03
- 0.3.0 — 2017-07-27
- 0.2.2 — 2016-11-05
- 0.2.1 — 2016-10-05
- 0.2.0 — 2016-05-19
- 0.1.5 — 2016-04-21
- … 5 more at https://npm.io/package/draft-js-export-markdown/versions

## README

# DraftJS: Export ContentState to Markdown

This is a module for [DraftJS](https://github.com/facebook/draft-js) that will export your editor content to Markdown.

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-export-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/).

## How to Use

    import { stateToMarkdown } from "draft-js-export-markdown";
    const markdown = stateToMarkdown(
      this.state.editorState.getCurrentContent()
    )

## License

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

---
_Source: https://npm.io/package/draft-js-export-markdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
