Gathering detailed insights and metrics for react-markdown-editor-lite
Gathering detailed insights and metrics for react-markdown-editor-lite
Gathering detailed insights and metrics for react-markdown-editor-lite
Gathering detailed insights and metrics for react-markdown-editor-lite
npm install react-markdown-editor-lite
Typescript
Module System
Node Version
NPM Version
93.5
Supply Chain
98.5
Quality
78.3
Maintenance
100
Vulnerability
100
License
TypeScript (89.89%)
Less (6.95%)
JavaScript (1.58%)
CSS (1.58%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,123,573
Last Day
4,508
Last Week
30,014
Last Month
119,291
Last Year
1,150,302
MIT License
1,052 Stars
503 Commits
159 Forks
17 Watchers
6 Branches
17 Contributors
Updated on Feb 12, 2025
Minified
Minified + Gzipped
Latest Version
1.3.4
Package Id
react-markdown-editor-lite@1.3.4
Unpacked Size
970.52 kB
Size
240.07 kB
File Count
212
NPM Version
6.14.16
Node Version
12.22.12
Cumulative downloads
Total Downloads
Last Day
-12.9%
4,508
Compared to previous day
Last Week
10.6%
30,014
Compared to previous week
Last Month
36.4%
119,291
Compared to previous month
Last Year
64.4%
1,150,302
Compared to previous year
4
1
41
Online demo
https://harrychen0506.github.io/react-markdown-editor-lite/
Default configuration
Pluggable bars
1npm install react-markdown-editor-lite --save 2# or 3yarn add react-markdown-editor-lite
Following steps:
1// import react, react-markdown-editor-lite, and a markdown parser you like 2import React from 'react'; 3import * as ReactDOM from 'react-dom'; 4import MarkdownIt from 'markdown-it'; 5import MdEditor from 'react-markdown-editor-lite'; 6// import style manually 7import 'react-markdown-editor-lite/lib/index.css'; 8 9// Register plugins if required 10// MdEditor.use(YOUR_PLUGINS_HERE); 11 12// Initialize a markdown parser 13const mdParser = new MarkdownIt(/* Markdown-it options */); 14 15// Finish! 16function handleEditorChange({ html, text }) { 17 console.log('handleEditorChange', html, text); 18} 19export default props => { 20 return ( 21 <MdEditor style={{ height: '500px' }} renderHTML={text => mdParser.render(text)} onChange={handleEditorChange} /> 22 ); 23};
If you are using a server-side render framework, like Next.js, Gatsby, please use client-side render for this editor.
For example, Next.js has next/dynamic, Gatsby has loadable-components
Following is a example for Next.js:
1import dynamic from 'next/dynamic'; 2import 'react-markdown-editor-lite/lib/index.css'; 3 4const MdEditor = dynamic(() => import('react-markdown-editor-lite'), { 5 ssr: false, 6}); 7 8export default function() { 9 return <MdEditor style={{ height: '500px' }} renderHTML={/* Render function */} />; 10}
With plugins:
1import dynamic from 'next/dynamic'; 2import 'react-markdown-editor-lite/lib/index.css'; 3 4const MdEditor = dynamic( 5 () => { 6 return new Promise(resolve => { 7 Promise.all([ 8 import('react-markdown-editor-lite'), 9 import('./my-plugin'), 10 /** Add more plugins, and use below */ 11 ]).then(res => { 12 res[0].default.use(res[1].default); 13 resolve(res[0].default); 14 }); 15 }); 16 }, 17 { 18 ssr: false, 19 }, 20); 21 22export default function() { 23 return <MdEditor style={{ height: '500px' }} renderHTML={/* Render function */} />; 24}
Full example see here
Since 1.1.0, You can add script
and link
tags in your browser and use the global variable ReactMarkdownEditorLite
.
You can download these files directly from
Note: you should import react before ReactMarkdownEditorLite
.
For example, in webpack, you import ReactMarkdownEditorLite by script
tag in your page, and write webpack config like this:
1externals: { 2 react: 'React', 3 'react-markdown-editor-lite': 'ReactMarkdownEditorLite' 4}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/7 approved changesets -- score normalized to 7
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
90 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@erda-ui/react-markdown-editor-lite
a light-weight Markdown editor based on React
react-markdown-editor-lite-underline
a light-weight Markdown editor based on React
react-markdown-editor-lite-plus
a light-weight Markdown editor based on React
react-markdown-editor-lite-fork
Custom fork of react-markdown-editor-lite