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
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.
|
There is no separate Markdown view. Type |
|
|
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 |
|
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. |
|
Everything else
- Find and replace with match case, whole words and regular expressions (including
$1groups). 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
.mdfiles. - 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.
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.
It is a folder of static files, so any static host works. No database, no functions, no environment variables.
| 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.
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 filenpm 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 ChromiumNeeds Node 20.11 or newer. There is no backend to start.
| 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.
| Format | How it is made | Notes |
|---|---|---|
| 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 |
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
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) andsrc/export/(the exporters).
| 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+/ | ⌘+/ |
| 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.
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.
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
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.
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).







