Gathering detailed insights and metrics for @erda-ui/react-markdown-editor-lite
Gathering detailed insights and metrics for @erda-ui/react-markdown-editor-lite
Gathering detailed insights and metrics for @erda-ui/react-markdown-editor-lite
Gathering detailed insights and metrics for @erda-ui/react-markdown-editor-lite
a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
npm install @erda-ui/react-markdown-editor-lite
Typescript
Module System
Node Version
NPM Version
73
Supply Chain
99
Quality
82.5
Maintenance
100
Vulnerability
100
License
TypeScript (88.04%)
Less (4.28%)
CSS (3.77%)
JavaScript (3.62%)
HTML (0.29%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
435 Commits
3 Forks
3 Branches
2 Contributors
Updated on Nov 12, 2021
Latest Version
1.4.9
Package Id
@erda-ui/react-markdown-editor-lite@1.4.9
Unpacked Size
203.04 kB
Size
54.69 kB
File Count
63
NPM Version
8.5.0
Node Version
16.14.2
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
1
42
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 * as 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// import html rendering style 9import 'react-markdown-editor-lite/lib/html.css'; 10 11// Register plugins if required 12// MdEditor.use(YOUR_PLUGINS_HERE); 13 14// Initialize a markdown parser 15const mdParser = new MarkdownIt(/* Markdown-it options */); 16 17// Finish! 18function handleEditorChange({html, text}) { 19 console.log('handleEditorChange', html, text) 20} 21export default (props) => { 22 return ( 23 <MdEditor 24 style={{ height: "500px" }} 25 renderHTML={(text) => mdParser.render(text)} 26 onChange={handleEditorChange} 27 /> 28 ) 29}
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 ( 10 <MdEditor 11 style={{ height: "500px" }} 12 renderHTML={/* Render function */} 13 /> 14 ) 15}
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 3/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
95 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