Socket
Socket
Sign inDemoInstall

draft-js-import-markdown

Package Overview
Dependencies
25
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    draft-js-import-markdown

DraftJS: Import Markdown to ContentState


Version published
Weekly downloads
91K
decreased by-10.14%
Maintainers
3
Install size
240 kB
Created
Weekly downloads
 

Readme

Source

DraftJS: Import Markdown to ContentState

This is a module for DraftJS that will convert Markdown to editor content.

It was extracted from React-RTE and placed into a separate module for more general use. Hopefully it can be helpful in your projects.

Installation

npm install --save draft-js-import-markdown

How to Use

import {stateFromMarkdown} from 'draft-js-import-markdown';
let contentState = stateFromMarkdown(markdown);

This project is still under development. If you want to help out, please open an issue to discuss or join us on Slack.

License

This software is ISC Licensed.

Keywords

FAQs

Last updated on 09 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc