imzbf/md-editor-rt
소개
JSX와 TypeScript로 개발한 React용 Markdown 편집기입니다. 다크 테마를 지원하며, Prettier로 콘텐츠를 정리하고 글을 바로 렌더링할 수 있습니다. 이미지를 붙여넣거나 잘라 업로드할 수도 있습니다.
웹 및 앱 개발What you can do
- Toolbar, screenfull or screenfull in web pages and so on.
- Themes, Built-in default and dark themes.
- Shortcut key for editor.
- Beautify your content by prettier(only for markdown content, not the code and other text).
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original🎄 md-editor-rt
English | 中文
Markdown editor for react, developed in jsx and typescript.
Documentation and demo:Go
Runnable integration examples: examples
Skill for downstream projects: md-editor-rt
The same series editor for vue3:md-editor-v3
⭐️ Features
- Toolbar, screenfull or screenfull in web pages and so on.
- Themes, Built-in default and dark themes.
- Shortcut key for editor.
- Beautify your content by
prettier(only for markdown content, not the code and other text). - Multi-language, build-in Chinese and English(default: Chinese).
- Upload picture, paste or clip the picture and upload it.
- Render article directly(no editor, no event listener, only preview content).
- Theme of preview,
default,vuepress,github,cyanosis,mk-cute,smart-bluestyles(not identical). It can be customized also(Refer to example page). mermaid(>=1.3.0),katexmathematical formula(>=1.4.0).- Customize the toolbar as you like.
- On-demand Import(>=4.0.0).
🗺 Preview
| Default theme | Dark theme | Preview only |
|---|---|---|
![]() |
![]() |
![]() |
Inputing prompt and mark, emoji extensions

📦 Install
npm i md-editor-rt
Use existing extension of language and theme, such as Japanese
npm i @vavt/cm-extension
Use existing components of toolbar, such as exporting content as PDF
npm i @vavt/rt-extension
For more ways to use or contribute, please refer to: md-editor-extension
💡 Usage
Starting from 4.0.0, internal components can be imported on-demand.
✍🏻 Display Editor
import React, { useState } from 'react';
import { MdEditor } from 'md-editor-rt';
import 'md-editor-rt/lib/style.css';
export default () => {
const [text, setText] = useState('# Hello Editor');
return <MdEditor value={text} onChange={setText} />;
};
📖 Preview Only
import React, { useState } from 'react';
import { MdPreview, MdCatalog } from 'md-editor-rt';
import 'md-editor-rt/lib/preview.css';
const scrollElement = 'html';
export default () => {
const [text] = useState('# Hello Editor');
const [id] = useState('preview-only');
return (
<>
<MdPreview id={id} value={text} />
<MdCatalog editorId={id} scrollElement={scrollElement} />
</>
);
};
When using server-side rendering, scrollElement should be of string type, eg: html, body, #id, .class.
For more usage, please visit the document.
🏁 Contribute
🤝 Commit Convention (Release Aligned)
The release workflow in .github/workflows/latest.yml reads commit messages to build CHANGELOG.md.
- Format:
<type>(<scope>)!: <summary> - Recommended types:
feat: goes to Featuresrefactor: goes to Refactorsfix: goes to Fixed Bugs- other types: goes to Others
- Subject should describe the user-visible change/problem being solved, not only the mechanical action (e.g. avoid only writing
bump xxx). - Prefer adding commit body (
git czlong description) to explain motivation and impact, especially for dependency upgrades. - Do not use pure version subjects like
6.3.2orv6.3.2-beta.1(ignored by release parser). docs(changelog): ...is reserved for the bot-generated changelog commit.- If you add
#123in subject/body, release automation will notify and close that issue after publishing. Only reference issue numbers that are truly resolved.
Examples:
git commit -m "feat(editor): support drag-sort toolbar items"
git commit -m "fix(preview): sync anchor when heading id contains emoji #1234"
git commit -m "fix(deps): bump @vavt/markdown-theme to fix mermaid overflow"
git commit -m "refactor(build): simplify dts rollup pipeline"
관련 프로젝트 살펴보기
불러오는 중…


