Skip to content

mufancom/draft-js-fluent-markdown-plugin

Repository files navigation

NPM Package Build Status

Draft.js Fluent Markdown Plugin

Just another Draft.js markdown plugin. Online DEMO.

fluent-markdown

Features

  • 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.

Install

yarn add draft-js-fluent-markdown-plugin

Usage

import createFluentMarkdownPlugin from 'draft-js-fluent-markdown-plugin';

const PLUGINS = [createFluentMarkdownPlugin()];

<Editor
  editorState={...}
  onChange={...}
  plugins={PLUGINS}
/>

License

MIT License.

About

Just another Draft.js markdown plugin.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy