editor

mdx-editorMIT活跃维护

面向 React 的 Markdown 富文本编辑器组件,基于 Lexical 构建,支持 MDX,让开发者在应用中快速嵌入所见即所得的 Markdown 编辑能力。

A rich text editor React component for markdown

v4.5.0发布于 2026-11-02 14:59 UTC3,714star +1 / 7 天312fork同步于 2026-11-10 11:40 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本v4.5.0
  1. v4.5.0最新正式版2026-11-02 · 2026-11-02 14:59 UTC

    4.5.0 (2026-11-02)

    Bug Fixes

    • core: preserve nested focus and isolate history availability on restore (dd014f8)
    • core: reconcile nested history without export-only undo steps (9d56758)
    • image: capture the image owner when opening edit dialog (794068c)
    • image: invalidate dialog uploads on document replacement (2369a97)
    • image: keep a dialogless save from closing a dialog opened during its upload (0d0cfba)
    • image: preserve imperative insertion and close removed upload targets (d4105b8)
    • image: share guarded upload lifecycle and retain original targets (1972c6d)
    • table: isolate restored cell history availability from parent (b6377fb)
    • table: narrow reconciliation to persisted cell contents (6a4c8d5)

    Features

    • image: expose safe dialog upload lifecycle (4a1eee5)
  2. v4.4.02026-11-02 · 2026-11-02 06:39 UTC
    查看更新说明

    4.4.0 (2026-11-02)

    Bug Fixes

    • address nested JSX import review and integrate upstream (caae6c9)
    • core: include JSX imports from nested editors (50f722b)
    • core: preserve fragment and exported component bindings (a9e44c6)
    • core: preserve stored imports and intrinsic images (74c9c6b)
    • frontmatter: keep multiline values and repeated custom-editor changes (b017477)
    • frontmatter: preserve existing form data and add editor override (f9922be)
    • frontmatter: preserve unsafe integer source precision (990b4f6)
    • jsx: keep directive-local components and renamed imports correct (bdaf8ea)
    • jsx: narrow nested import provenance after review (9a64b4b)
    • lists: keep nested ordered lists that don't start at 1 on reload (bd33e17)
    • lists: keep the start number of ordered lists (cc13233), closes #471

    Features

    • frontmatter: support recursive typed YAML editing (9e27610)
  3. v4.3.42026-10-27 · 2026-10-27 15:01 UTC
    查看更新说明

    4.3.4 (2026-10-27)

    Bug Fixes

    • codemirror: ignore language loads after effect cleanup (1e16b00)
    • diff-source: preserve document state across mode handoffs (5c43b39)
    • diff-source: preserve source edits when inserting Markdown (fd69f10)
    • markdown-shortcut: pick up plugins initialized after markdownShortcutPlugin (00a8ece), closes #620
  4. v4.3.32026-10-13 · 2026-10-13 06:56 UTC
    查看更新说明

    4.3.3 (2026-10-13)

    Bug Fixes

    • core: keep unchanged nested editors out of the root undo history (1d7fa34)
    • image: keep uploaded paste and drop images in table cells (9f7bfc1)
    • image: keep uploads that finish after the user moves to another editor (72b0140)
    • image: persist dialog changes in nested editors (f6c7d89)
    • link-dialog: copy link URLs without the Clipboard API (ca2a284)
    • link-dialog: hide the copy button when the Clipboard API is unavailable (22efbda), closes #990
    • markdown-shortcut: follow allowedHeadingLevels changes after mount (4ba2585)
    • respect nonconsecutive heading levels in markdown shortcuts (5d9ca7d)
    • table: keep unchanged cells out of the root undo history (90339e7)
    • toolbar: sync history availability when controls mount (8924b4b)
  5. v4.3.22026-10-02 · 2026-10-02 06:43 UTC
    查看更新说明

    4.3.2 (2026-10-02)

    Bug Fixes

    • table: stop Backspace and Delete at a cell edge from freezing the page (122347c), closes #902

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    MDXEditor

    npm npm bundle size (scoped)

    Because markdown editing can be even more delightful.

    MDXEditor is an open-source React component that allows users to author markdown documents naturally. Just like in Google docs or Notion. See the live demo that has all features turned on. The component supports the core markdown syntax and certain extensions, including tables, images, code blocks, etc. It also allows users to edit JSX components with a built-in JSX editor or a custom one.

    import {MDXEditor, headingsPlugin} from '@mdxeditor/editor';
    import '@mdxeditor/editor/style.css';
    
    export default function App() {
      return <MDXEditor markdown={'# Hello World'} plugins={[headingsPlugin()]} />;
    }
    

    Get Started

    The best place to get started using the component is the documentation.

    Help and support

    If you find a bug, check if something similar is not reported already in the issues. If not, create a new issue.

    If you're integrating the component in your commercial project and need dedicated assistance with your issues in exchange of sponsorship, contact me over email.

    If you want to discuss ideas start a discussion in the Discussions section.

    License

    MIT © Petyo Ivanov.