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
@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
a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
npm install react-markdown-editor-lite
Typescript
Module System
Node Version
NPM Version
TypeScript (89.89%)
Less (6.95%)
JavaScript (1.58%)
CSS (1.58%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,084 Stars
503 Commits
161 Forks
17 Watchers
6 Branches
16 Contributors
Updated on Jul 11, 2025
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
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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
97 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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