Skip to content

About

Free, open-source WYSIWYG Markdown editor in your browser: math, diagrams, PDF/Word/HTML export. No server, no account, works offline.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Professional Markdown Editor: write Markdown the way it will look

License: MIT CI Runs in your Browser No Server Works Offline PRs Welcome

A WYSIWYG Markdown Editor that lives in a browser tab.
Math, diagrams and tables as you type. Export to PDF, Word (with real equations) and HTML.
No account. No server. No tracking. Your files never leave your computer.

Try it · Deploy your own · Features · Contribute


Typing Markdown in the editor: headings, bold, a checklist, an equation and a diagram appear as formatted content while you type

Why this exists

Most Markdown tools make you pick: a split screen full of asterisks, or a polished app that is paid, closed, or tied to an account. This editor aims at the gap:

Professional Markdown Editor Typora MarkText StackEdit
Edit the formatted page directly (WYSIWYG) ✅ ✅ ✅ split view
Open source ✅ MIT ❌ ✅ ✅
Free ✅ paid ✅ ✅
Nothing to install (runs in the browser) ✅ ❌ ❌ ✅
Works offline, installable ✅ ✅ ✅ partly
Your files stay on your computer ✅ ✅ ✅ optional sync

Based on each project's public description at the time of writing; tools change, so check before you decide.

It is built for people who write things that have to leave the editor looking right: lecture notes with equations, reports with diagrams, documentation, anything that ends up as a PDF or a Word file.

What you get

Write on the page

There is no separate Markdown view. Type #, -, [ ], > or three backticks and the block appears; select text for a formatting bar; press / for every block. Underneath it is plain .md that reads back exactly as you wrote it (a test enforces the round trip). The lock button in the toolbar turns the page into a read-only view, so you can read, search and copy without changing anything by accident.

The slash menu listing headings, lists, quotes, code and more
A document with an equation, highlighted Python code and a table

Math, code, tables, diagrams

LaTeX equations rendered by KaTeX, with a live preview when you click one. Math pasted from web pages and chat apps stays math, whether it arrives rendered (KaTeX, MathML, Wikipedia) or as $…$ text. Syntax-coloured code in 34 languages, with automatic detection. Tables with alignment. Mermaid diagrams you can double-click to edit. Collapsible sections, checklists, highlights, sub- and superscripts.

Export that looks like the editor

PDF through your browser's print dialog (selectable text, links, fonts, page numbers). Word with real headings, native editable equations, tables and images. HTML as one self-contained file that follows light and dark mode. Markdown as is.

Collapsible sections can export open, or as summaries only, which is handy for answer keys.

The first page of an exported PDF: heading, equation, code, table, diagram and checklist
Everything else
  • Find and replace with match case, whole words and regular expressions (including $1 groups). Every match is highlighted; Replace All is one Undo step.
  • Version history. Every save keeps the text it replaced (last 50 per document). Restore one into the editor as an ordinary change, so Undo still works.
  • Two places to keep files. A browser library that works everywhere, or folder mode to edit a real folder on your computer (Chrome, Edge and other Chromium browsers).
  • Images are stored beside the document in assets/, so the Markdown stays small and portable. Paste or drop them in.
  • Works offline and installs as an app. Installed copies can be chosen as the opener for .md files.
  • Drafts are never lost. Every change is kept in the browser a moment after you stop typing (and at once when the tab is hidden or closed), and offered back when you open the file again. If the browser refuses to keep a draft, you are told.
  • Light, dark and system themes, three font roles (serif, sans, mono), a wide-page toggle, spell check, word count and reading time.
  • Phone friendly. The toolbar adapts; everything is reachable from the Insert and More menus.
  • Safe with documents from anyone. Raw HTML in Markdown is shown as text, never run. Dangerous link types are refused. A strict Content-Security-Policy is shipped. See SECURITY.md.

The same document in dark mode The editor on a phone The Open dialog listing saved documents

Selecting text brings up a formatting bar The PDF export dialog: page size, margins, page numbers, title header

Try it in 10 seconds

Open the live editor and start typing, or drag a .md file onto the page. Press Ctrl+S (⌘+S) to save into your browser library. In Chrome or Edge, Document menu → Open folder… edits the files in a folder you choose.

Deploy your own, free

It is a folder of static files, so any static host works. No database, no functions, no environment variables.

Deploy with Vercel

Host Settings Free-tier notes
Vercel Settings come from vercel.json The free Hobby plan is for non-commercial use, per Vercel's terms.
Cloudflare Pages Build command npm run build, output directory dist Free plan: 500 builds a month, 20,000 files, 25 MiB per file. This site is about 150 files, the largest 1.5 MB.
Anything else npm run build, then upload dist/ Netlify, S3 and CloudFront, nginx, a Raspberry Pi.

Security headers and caching ship in public/_headers (Cloudflare, Netlify) and vercel.json. Set SITE_URL=https://your.domain when building to get absolute links in social-card previews. More in docs/deploy.md.

Run it locally

git clone https://github.com/harsh040506/professional-markdown-editor
cd professional-markdown-editor
npm install
npm run dev          # http://127.0.0.1:4317, rebuilds when you save a file
npm run build        # the site, in dist/
npm run preview      # serve dist/ the way a static host would
npm test             # unit tests: round-trip, link safety, export output
npm run test:e2e     # drives the built site in Chrome, Edge or Chromium

Needs Node 20.11 or newer. There is no backend to start.

Where your documents live

Browser library (default) Folder mode
Works in Every modern browser Chrome, Edge, Opera and other Chromium browsers
Stored in This browser's IndexedDB A folder on your computer, as plain .md files
Setup None Pick a folder once; the browser asks permission
Changes made by other programs n/a Noticed on save; you choose whether to overwrite
Survives clearing site data No (the app asks the browser to keep it, but export what matters) Yes
Version history ✅ ✅ (kept in the browser, not in your folder)

A browser library is convenient, but it is not a backup. Use folder mode, or Download as Markdown, for anything you cannot lose.

How exporting works

Format How it is made Notes
PDF The page is laid out with CSS print rules and handed to the browser's print dialog; choose Save as PDF A4, Letter or Legal, three margin sizes, page numbers, optional title header. Chrome, Edge and Safari draw page numbers; Firefox does not support the CSS for that yet
Word (.docx) Built in the browser with the docx library Real heading styles, native numbered and bulleted lists, native Word equations, tables with repeating header rows, syntax-coloured code, images, diagrams as PNG, internal links
HTML One file, with fonts, math fonts, images and diagrams inside Light and dark diagrams; collapsible sections stay clickable
Markdown The editor's own serializer Exactly what Save writes

How it is built

flowchart LR
  subgraph Browser
    UI[App shell<br/>toolbar · dialogs · drafts] --> ED[ProseMirror editor<br/>schema · commands · node views]
    ED <--> MD[Markdown parser and serializer<br/>markdown-it · round-trip tested]
    UI --> ST{Storage}
    ST --> LIB[(Library<br/>IndexedDB)]
    ST --> FLD[(Folder<br/>File System Access API)]
    UI --> EX[Exporters]
    EX --> PDF[PDF<br/>print dialog]
    EX --> DOC[Word<br/>docx · OMML equations]
    EX --> HTM[HTML<br/>self-contained]
  end
  CDN[Static host<br/>Vercel · Cloudflare · any] -. serves files once .-> Browser
Loading

The host only ever serves files. After the page has loaded there is no network traffic about your documents, and with the service worker the editor opens with no network at all.

  • ProseMirror for the editor, markdown-it for parsing, KaTeX for math, Mermaid for diagrams, highlight.js for code, docx for Word.
  • Plain JavaScript modules bundled by esbuild; no framework, no TypeScript build. The whole build takes about two seconds.
  • Every source file opens with a comment on its role and the rules it must keep. Start with src/client/app/main.js (the document lifecycle), src/client/markdown.js (the save format) and src/export/ (the exporters).

Keyboard shortcuts

Windows / Linux Mac
Save · Open Ctrl+S · Ctrl+O ⌘+S · ⌘+O
Insert any block / on an empty line same
Find · Replace Ctrl+F · Ctrl+H ⌘+F · ⌘+⌥+F
Move block up · down Alt+↑ · ↓ ⌥+↑ · ↓
Bold · Italic · Link Ctrl+B · I · K ⌘+B · I · K
Export PDF Ctrl+P ⌘+P
Lock · unlock (view only) Ctrl+Shift+L ⌘+Shift+L
Every shortcut Ctrl+/ ⌘+/

Browser support

Chrome, Edge, Opera Safari Firefox
Editing, library, version history ✅ ✅ ✅
Math, diagrams, Word and HTML export ✅ ✅ ✅
PDF export ✅ ✅ ✅
Page numbers in the PDF ✅ ✅ (18.2+) ❌
Folder mode ✅ ❌ ❌
Offline and install ✅ ✅ offline only

The automated tests run in Chrome-family browsers. Firefox and Safari columns reflect what those browsers support and are not yet covered by tests; please open an issue if something misbehaves there.

Privacy

The app has no analytics, no cookies, no accounts and no calls home. Fonts, math fonts and every script are served from the same site. The only requests beyond that are the ones a document asks for, such as an image linked from the web. Details and the threat model are in SECURITY.md.

Roadmap

Ideas that fit the "no server" rule, roughly in order. Open an issue to nudge one up.

  • Find and replace
  • Lock: a read-only view mode
  • Table of contents block and outline sidebar
  • Footnotes and reference-style links
  • Import from .docx
  • Re-draw diagrams when the theme changes
  • Optional sync through a user-supplied Git repository

Contributing

Bug reports, ideas and pull requests are welcome. CONTRIBUTING.md covers set-up, tests and where things live. Please follow the Code of Conduct.

If the editor saves you time, a star helps other people find it.

Star History Chart

License

MIT © 2026 Harsh Chhajer.

The app bundles open-source packages under their own licenses, listed in THIRD_PARTY_NOTICES.md: fonts under the SIL Open Font License (DM Sans, Newsreader, JetBrains Mono), icons from Hugeicons (free set, MIT), and mathml2omml (LGPL-3.0, loaded only when exporting to Word and replaceable).

Author

Built by Harsh Chhajer: GitHub · LinkedIn · X

About

Free, open-source WYSIWYG Markdown editor in your browser: math, diagrams, PDF/Word/HTML export. No server, no account, works offline.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages