Milkdown: a plugin-driven WYSIWYG markdown editor framework for the web
🍼 Plugin driven WYSIWYG markdown editor framework.
At a glance
- What is it?
- Milkdown wraps ProseMirror and remark into a plugin-driven WYSIWYG markdown editor that ships as scoped npm packages. It suits teams that want a Typora-like editing surface inside their own UI and are willing to assemble it from plugins.
- Who is it for?
- Adopt Milkdown if you are building a browser-based editor and want markdown as the storage format with a Typora-like editing surface, and if you accept that the editor is assembled from @milkdown/core plus plugins rather than configured through one options object. Do not adopt it if you need a drop-in rich text component with a fixed toolbar and no build step, or if you want a desktop markdown application rather than a framework.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- Milkdown/milkdown12,077 ★ · +135
| Repository | 2026-09-22 | 2026-11-23 |
|---|---|---|
| Milkdown/milkdown | 11.9k | 12.1k |
135 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The problem Milkdown solves: markdown storage with a WYSIWYG surface
Most editors force a choice. A plain textarea keeps markdown as the source of truth but shows syntax characters to the writer. A rich text editor shows formatted content but stores HTML or a proprietary document model, which means the markdown is a conversion step that can lose information. Milkdown is aimed at the middle: a WYSIWYG markdown editor, described in the README as "inspired by Typora", where the writer sees rendered output and the underlying document is still markdown.
The intended audience is developers building an editor into a web application, not end users looking for an app to install. The README calls Milkdown "a plugin-driven WYSIWYG markdown Editor" and points to the official documentation site rather than walking through an API. The repository is a pnpm monorepo with a packages/ directory, an e2e/ directory, a storybook/ directory and a dev/ directory, so the published artifacts are libraries consumed by other projects.
How Milkdown works: ProseMirror for editing, remark for markdown
The architecture is stated plainly in the README: Milkdown is built on top of prosemirror and remark. Those two libraries do different jobs. remark parses and serializes markdown, so the markdown text is the interchange format. ProseMirror provides the document model, the selection and transaction system, and the view layer that renders editable content in the browser. Milkdown's contribution is the glue plus a plugin system that lets you compose features instead of configuring a monolith.
The plugin emphasis is not marketing language; it shows up in the repository layout. The monorepo publishes scoped packages under @milkdown, and the README's download badge points at an npm search for @milkdown, which implies a family of packages rather than a single entry. The README does not list what each package contains, so treat the documentation site as the source for that.
The practical consequence of this design is that a Milkdown editor is something you build. You start from the core package, then add the plugins whose behavior you want, then mount the result into a DOM node. That is more work up front than dropping in a component.
Installing Milkdown and getting a first editor on screen
Milkdown is distributed through npm under the @milkdown scope. The README links its download badge to an npm search for @milkdown and its version badge to @milkdown/core, so the core package is the natural starting point. The repository uses pnpm workspaces, but the published packages are ordinary npm packages and can be installed with whichever package manager your project already uses.
Install the core package:
npm install @milkdown/coreThe README does not print an install command or a code sample, so the exact import names and the editor creation call have to come from the official documentation at milkdown.dev. What the repository does establish is the shape of the work: you import from @milkdown packages, register the plugins you want, and mount the editor into a container element in your page.
If you want to run the project's own development environment rather than consume the packages, the root package.json defines scripts for that. The start script filters to the storybook package, and there are separate e2e scripts:
pnpm start
pnpm test:e2eThe first command launches the Storybook workspace, which is where the maintainers exercise components interactively. The second runs the end-to-end suite through the @milkdown/e2e package. Both require the monorepo to be installed first with pnpm, and neither is needed if you only want the published libraries.
Where Milkdown is the wrong tool
The clearest limitation is documentation surface. The README is short by design and defers everything to milkdown.dev. There is no API reference, no configuration table and no migration notes in the repository front page. If you evaluate libraries by reading the README, you will not learn how to create an editor from it. That is a deliberate choice, not an oversight, but it raises the cost of a quick trial.
The second limitation follows from the plugin architecture. Because features arrive as plugins, the behavior of your editor depends on which ones you register and in what order. That is flexible, and it also means there is no single place to look when something renders unexpectedly. A team that wants a fixed feature set with predictable defaults will spend time discovering which plugin owns which behavior.
Third, the framework is a browser editor. It is not a markdown processor for build pipelines, not a static site generator, and not a desktop application. If your goal is to render markdown to HTML on a server, remark alone is the smaller dependency. If your goal is a native markdown writing app, Milkdown is the wrong layer entirely.
Finally, the README does not document versioning policy across the @milkdown packages. The releases listed are 7.x, with v7.23.0 on 2026-10-27, v7.22.3 on 2026-10-10 and v7.22.2 on 2026-09-23, and the repository uses changesets for release management. Whether every package in the scope moves in lockstep is something you would need to confirm on npm before pinning versions.
Milkdown compared with Lexical
The most useful comparison is with Lexical, and the difference is in what the document is. Lexical is a text editor framework from Meta that centers on its own node-based editor state; markdown is one of several formats you can import or export. Milkdown centers on markdown as the document, with remark handling parsing and serialization and ProseMirror handling the editing model.
That distinction matters at the storage layer. If your application already treats markdown as the canonical format, for example a notes tool or a docs system, Milkdown's model avoids a conversion step in the middle. If your application treats a rich document model as canonical and markdown as an export option, Lexical's framing is closer to the grain of the problem. Both are TypeScript, both are extensible through plugins or nodes, and both require you to build the surrounding UI. The choice is less about capability than about which representation you want to persist.
A second alternative is to use ProseMirror directly. Milkdown's value over that is the markdown layer and the plugin packaging; the cost is an extra abstraction to learn. If you already have a ProseMirror schema and only need markdown serialization, remark plus a ProseMirror markdown serializer is a smaller surface than adopting a framework on top.
Maintenance, licence and the cost of upgrading
The repository is not archived, and the last push was on 2026-11-02. That is recent activity, and the release cadence supports it: three 7.x releases between 2026-09-23 and 2026-10-27. For a library you would embed in a product, that is a healthy signal, though cadence alone says nothing about the size of the changes between versions.
The upgrade cost is shaped by the monorepo structure. Dependencies are scoped packages under @milkdown, and the release tooling is changesets, which is designed for versioning many packages together. In practice that usually means you upgrade the whole set rather than one package in isolation, because plugins and core are released from the same workspace. Budget for reading the changelog for every @milkdown package you import, not just the core.
The licence is MIT, stated in the README and present as a LICENSE file at the repository root. MIT is permissive: it allows commercial use, modification and redistribution provided the copyright notice and permission notice are retained. That is a summary of the licence text, not legal advice, and if your organization has specific requirements around attribution or patent language you should have counsel read the LICENSE file rather than rely on this description.
One cost the repository does not let you estimate is the size of the dependency graph. The root package.json shows a substantial development toolchain, including rollup, vitest, oxlint, storybook and changesets, but that is the monorepo's own build setup. What ships to your bundle is the published @milkdown packages and their runtime dependencies, which the README does not enumerate.
Editorial conclusion
Adopt Milkdown if you are building a browser-based editor and want markdown as the storage format with a Typora-like editing surface, and if you accept that the editor is assembled from @milkdown/core plus plugins rather than configured through one options object. Do not adopt it if you need a drop-in rich text component with a fixed toolbar and no build step, or if you want a desktop markdown application rather than a framework. Before committing, verify which framework integration you need, check the current version on npm, and read the official documentation at milkdown.dev, because the README itself points there rather than documenting the API.
Frequently asked questions
What is Milkdown?
Milkdown is a plugin-driven WYSIWYG markdown editor framework written in TypeScript, built on top of ProseMirror and remark. The README describes it as inspired by Typora and points to milkdown.dev for documentation.
How does Milkdown compare with Lexical?
Milkdown centers on markdown as the document, using remark for parsing and serialization and ProseMirror for the editing model, while Lexical centers on its own node-based editor state with markdown as one import and export format. The choice usually comes down to which representation you want to persist.
What are the alternatives to Milkdown?
The README names ProseMirror and remark as the layers Milkdown is built on, so using ProseMirror directly with a markdown serializer is a smaller-surface alternative. Lexical is another common comparison, with a different document model.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/milkdown-milkdown)Star history chart for your README
[](https://hysenlabs.com/projects/milkdown-milkdown)Was this useful?