# pandao/editor.md

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/pandao-editor-md).**

14,315 stars · 2,458 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/pandao/editor.md
- Homepage: http://editor.md.ipandao.com/
- awesome-repositories: https://awesome-repositories.com/repository/pandao-editor-md.md

## Topics

`codemirror` `commonmark` `documentation` `editor` `flowchart` `gfm` `javascript` `jquery` `katex` `markdown` `markdown-editor` `markdown-writer` `marked` `sequence-diagram` `toc`

## Description

Editor.md is an embeddable Markdown editor component for web applications that provides a real-time, dual-pane live preview alongside the raw source as the user types. It is designed as a plugin-based Markdown editor with a plugin architecture for extending functionality through custom modules, and it supports rendering LaTeX mathematical expressions using KaTeX as well as converting flowchart and sequence diagram syntax into visual diagrams within the preview.

The editor distinguishes itself through its plugin-based extension system, which allows loading additional functionality through external modules or custom plugins without modifying the core component. It supports asynchronous module loading via RequireJS or SeaJS for dependency management, and includes synchronized scrolling between the editor and preview panes with optional one-way synchronization. The editor also handles cross-origin image uploads through an iframe-based mechanism, supports drag-and-drop image uploads, and provides dialog-driven media insertion for images, links, tables, and other rich media elements.

Additional capabilities include customizable keyboard shortcuts, localization support through language packs, and theming options that allow independent customization of the editor, preview pane, and toolbar appearance. The editor can generate a clickable table of contents from heading tags, collapse and expand sections of the Markdown source, and includes HTML sanitization to filter unsafe content from rendering. It also supports text manipulation operations such as search and replace, and inserting page breaks, code blocks, emoji, and task lists through toolbar actions or syntax.

## Tags

### Content Management & Publishing

- [Markdown Editors](https://awesome-repositories.com/f/content-management-publishing/markdown-editors.md) — Embeds a full-featured Markdown editor with live preview into web applications as a reusable component.
- [Embeddable Components](https://awesome-repositories.com/f/content-management-publishing/markdown-editors/embeddable-components.md) — Provides an embeddable Markdown editor component for web applications with live preview and toolbar customization.
- [Plugin-Based Editors](https://awesome-repositories.com/f/content-management-publishing/markdown-editors/plugin-based-editors.md) — Provides a plugin architecture for extending Markdown editor functionality through custom modules and features.
- [Diagram Renderers](https://awesome-repositories.com/f/content-management-publishing/markdown-renderers/diagram-renderers.md) — Embeds flowchart and sequence diagram syntax that renders as visual diagrams in the preview. ([source](http://editor.md.ipandao.com/))
- [Mathematical Notation Renderers](https://awesome-repositories.com/f/content-management-publishing/markdown-renderers/mathematical-notation-renderers.md) — Renders LaTeX mathematical expressions inline or as blocks using KaTeX within the Markdown preview. ([source](https://pandao.github.io/editor.md/en.html))
- [KaTeX Renderers](https://awesome-repositories.com/f/content-management-publishing/markdown-renderers/mathematical-notation-renderers/katex-renderers.md) — Renders LaTeX mathematical expressions inline and as blocks using KaTeX within the Markdown preview.
- [KaTeX-Enabled Editors](https://awesome-repositories.com/f/content-management-publishing/markdown-editors/katex-enabled-editors.md) — Displays LaTeX and TeX mathematical expressions using KaTeX in the rendered Markdown preview.
- [Flowchart and Sequence](https://awesome-repositories.com/f/content-management-publishing/markdown-renderers/diagram-renderers/flowchart-and-sequence.md) — Converts flowchart and sequence diagram syntax embedded in Markdown into visual diagrams in the preview.

### Development Tools & Productivity

- [Markdown Previewers](https://awesome-repositories.com/f/development-tools-productivity/markdown-previewers.md) — Ships a real-time dual-pane live preview that updates as the user types Markdown content.

### Graphics & Multimedia

- [Diagramming Engines](https://awesome-repositories.com/f/graphics-multimedia/visualization-mapping/diagramming-engines.md) — Converts flowchart and sequence diagram syntax embedded in Markdown into visual diagrams in the preview.

### Scientific & Mathematical Computing

- [LaTeX Math Rendering](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/mathematical-typesetting-engines/mathematical-typesetting/latex-math-rendering.md) — Renders LaTeX mathematical expressions inline or as blocks within the preview using the KaTeX library.

### Software Engineering & Architecture

- [Plugin Extenders](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/plugin-architectures/developer-authoring-interfaces/custom-module-implementations/module-functionality-extenders/plugin-extenders.md) — Loads additional functionality through modules or custom plugins to add new features. ([source](http://editor.md.ipandao.com/))
- [Plugin-Based Editor Extensibility](https://awesome-repositories.com/f/software-engineering-architecture/plugin-based-editor-extensibility.md) — Provides a plugin architecture for extending Markdown editor functionality without modifying the core component.

### Web Development

- [Editor Live Previews](https://awesome-repositories.com/f/web-development/live-preview-systems/editor-live-previews.md) — Renders a real-time preview alongside the source editor, updating as the user types Markdown content.
- [Rich Media Insertions](https://awesome-repositories.com/f/web-development/editor-insertion-commands/table-insertion/rich-media-insertions.md) — Opens modal dialogs for inserting images, links, tables, and other rich media elements into the Markdown source.
- [Dialog-Driven Insertions](https://awesome-repositories.com/f/web-development/editor-insertion-commands/table-insertion/rich-media-insertions/dialog-driven-insertions.md) — Opens dialog boxes for inserting images, links, tables, emoji, and HTML entities into the Markdown source. ([source](https://github.com/pandao/editor.md/blob/master/CHANGE.md))
- [Table of Contents Generators](https://awesome-repositories.com/f/web-development/table-of-contents-generators.md) — Generates a clickable table of contents from heading tags, displayed as a dropdown menu. ([source](http://editor.md.ipandao.com/))

### User Interface & Experience

- [Drag-and-Drop File Upload](https://awesome-repositories.com/f/user-interface-experience/file-uploaders/drag-and-drop-file-upload.md) — Accepts image files dropped onto the editor and uploads them, inserting the resulting URL into the document. ([source](https://pandao.github.io/editor.md/en.html))
- [Scroll Synchronization](https://awesome-repositories.com/f/user-interface-experience/live-preview-integrations/side-by-side-editor-previews/split-editor-groups/scroll-synchronization.md) — Links the scroll positions of the editor and preview panes, with optional one-way synchronization.
