# draft-md

> React/Draft.js-based Markdown editor inspired by iA Writer

Latest version **0.1.0** (published 2016-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install draft-md
pnpm add draft-md
yarn add draft-md
bun add draft-md
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-05-31 |
| First published | 2016-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Robin Ricard |
| Maintainers | rricard |
| Keywords | react, draft, markdown |

## Links

- npm: https://www.npmjs.com/package/draft-md
- Repository: https://github.com/rricard/draft-md
- Homepage: https://github.com/rricard/draft-md#readme
- Issues: https://github.com/rricard/draft-md/issues
- npm.io page: https://npm.io/package/draft-md

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.1.0
- [draft-js](https://npm.io/package/draft-js.md) ^0.7.0
- [react-dom](https://npm.io/package/react-dom.md) ^15.1.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-05-31

## README

# DraftMD

React/Draft.js-based Markdown editor inspired by iA Writer

## Installation

    npm install draft-md

or consume the bundled file in the `dist/` directory

## Usage

### Using React

If you use react already, it's very straightforward:

    import {MDEditor} from "draft-md"
    import React from "react"
    import ReactDOM from "react-dom"
    ReactDOM.render(
      <MDEditor initialValue="# Hello!" onChange={console.log} />,
      document.getElementById("editor")
    )

### Without React - Global object in Bundle

    DraftMD.mountMDEditor(
      {initialValue: "# Hello!"},
      document.getElementById("editor")
    )

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