Just another Draft.js markdown plugin. Online DEMO.
- Common inline features like bold, italic,
strikethrough,code
, link and plain link https://github.com/vilic; and block features like ordered or unordered list, image block, code block, blockquote and horizontal rule. - Carefully handled undo/redo stack, it always pushes the input before performing markdown transform.
- Reasonable character escaping support, you can safely type
**text\***
and get text* without being surprised.
yarn add draft-js-fluent-markdown-plugin
import createFluentMarkdownPlugin from 'draft-js-fluent-markdown-plugin';
const PLUGINS = [createFluentMarkdownPlugin()];
<Editor
editorState={...}
onChange={...}
plugins={PLUGINS}
/>
MIT License.