Skip to content

OpenMarkdown Editor

@openmarkdown-dev/editor is a live-preview Markdown editor built on CodeMirror 6. Headings, lists, tables, math, Mermaid diagrams, callouts and YAML properties render in place, and the Markdown shows under the caret. It edits the Markdown source text itself, for a lossless round-trip: open and save without editing, and the file is byte-for-byte what it was. When you edit, only what you touched changes, with a few exceptions, each pinned by a test.

It is the editor inside the OpenMarkdown app, extracted as an MIT library.

  1. Install the package and its CodeMirror peers.
  2. Mount your first editor in plain JavaScript.
  3. Use it in React or in any other framework.
  • The API reference is generated from the package's type declarations.
  • Examples: small projects you can run, one per task.
  • Live demo: the editor with a showcase document.

The editor's source is in its public repository, and the same editor ships inside the OpenMarkdown app for macOS, Windows and Linux. To see it with files, folders and an agent around it, get the app or try the whole app in your browser.