
Markdown Preview Editor
Browser-only Markdown editor with live preview and strict privacy.
Replaces Typora, Ia Writer, Ulysses

Who it's for
Write README files, architecture notes, and API docs in a live-preview environment that renders exactly what GitHub will show. KaTeX and Mermaid support covers math-heavy specs and system diagrams. The sandboxed preview confirms that embedded content is safe before committing.
If documents need to be shared or co-authored in real time, a collaboration tool like HackMD or a shared Git-based workflow is a better fit.
Every note stays in the browser tab and on local disk. The CSP prevents analytics or external fetches, and the sandboxed preview blocks tracking pixels. Sensitive notes, personal journals, or regulated content can be edited without any data leaving the device.
If notes need to sync across multiple devices automatically, a local-first sync tool such as Obsidian with a self-hosted sync plugin handles that use case more directly.
Deploy the prebuilt release to an internal server once and give team members a URL. No per-seat licensing, no accounts, and no cloud subscription. Supports 15 interface languages, which suits distributed teams with mixed language preferences.
If the primary need is publishing Markdown to a website or CMS, a static site generator with its own preview server is a better fit for that publishing pipeline.
KaTeX renders LaTeX math inline and in display blocks client-side with no external render service. Mermaid covers simple graphs and flowcharts. Multi-tab editing keeps related reference documents open alongside the note being written.
If the workflow requires importing from or exporting to Word or LaTeX with precise layout control, a dedicated document editor such as Overleaf or Pandoc handles those requirements more thoroughly.
The problem
Writing Markdown with a live preview typically means either installing a paid desktop application or trusting a cloud service to store your files. Typora requires a one-time purchase and runs only on your local machine. Collaboration services like HackMD keep documents on their own servers, which creates privacy and data-portability concerns for sensitive notes, internal documentation, or regulated content. The deeper problem is that most tools conflate convenience with data exposure. A hosted service handles rendering, but it also logs your content, IP address, and editing behavior. A strict self-hosted option usually requires a database and an authentication layer before you can open a single file. What is missing is a browser-native tool that renders Markdown locally with zero server-side infrastructure and no installation overhead.
How it works
The editor and preview panes scroll together, keeping the source and rendered output aligned. Both light and dark themes are available, and the layout adapts for phone screens without a separate mobile app.
Supports GitHub-flavored Markdown with syntax highlighting, KaTeX for math equations, and Mermaid for diagrams and flowcharts. All rendering runs client-side, so no external service is called when a formula or chart updates.
Multiple `.md` files open as separate tabs, each with its own independent undo stack. Wikilinks between open files switch tabs directly, which makes it useful for linked note-taking and documentation with cross-references.
Drop multiple files, entire folders, or images directly onto the editor. Dropped images embed inline; dropped `.md` files open as new tabs. Folder drops open all Markdown files in the folder at once.
The preview renders inside a sandboxed iframe. External images, media, and links are blocked by default and can only be allowed individually. DOMPurify sanitizes every document before rendering, and a lightweight offline heuristic checks allowed links for phishing patterns and local-network addresses.
Documents can be saved as `.md`, exported to a self-contained HTML file, or printed and saved as PDF. The HTML export bundles styles inline, so the exported file renders correctly without a server or any additional dependencies.
Features
- Live Preview with Synchronized Scrolling
- GitHub-Flavored Markdown with KaTeX and Mermaid
- Multi-Document Tabs with Per-Tab Undo History
- Drag and Drop for Files, Folders, and Images
- Sandboxed Preview with XSS and Phishing Protection
- Export to HTML, PDF, and Standalone Files
How to install
Deploy on any static server with no build step, or clone the repository and run locally with npm.
git clone https://github.com/ovasendin/markdown_preview_editor
cd markdown_preview_editor && npm ci && npm run build
npm run devRecommended for this setup
Strengths
- Zero-Infrastructure Self-Hosting: The prebuilt release archive deploys to any static host by extraction with no Node.js runtime, no database, and no environment variables required. Apache, nginx, Caddy, and Docker configs are bundled in the repository. The included `.htaccess` enables HTTPS and security headers on Apache and LiteSpeed automatically.
- Strict Content Security Policy Enforced by Design: The CSP is not an opt-in privacy setting; it is enforced at the HTTP header level and blocks the page from contacting any external origin. This makes it auditable: a CSP audit tool will confirm the restriction without requiring trust in the application's own self-reporting.
- WCAG 2.2 AA Accessibility Verified by CI: Axe-core accessibility checks run as part of the automated test suite across light and dark themes, the preview pane, all open panels, and the phone layout. Tabs, the pane divider, and menus are keyboard-navigable. WCAG 2.2 AA with zero violations is a passing gate in the test suite, not a checkbox claim.
- MIT License with No Backend Dependency: MIT means you can fork, modify, and deploy it commercially with no restrictions. Because there is no backend component, there is nothing to self-host beyond a static file server: no license server, no telemetry endpoint, and nothing to call home.
Trade-offs
- No Real-Time Collaboration: Markdown Preview Editor is a single-user, browser-only tool with no shared editing, comment threads, or multiplayer presence. Teams that need to co-author documents in real time must share files manually or choose a collaboration-first service like HackMD.
- Very Early-Stage Project with Low Community Activity: The repository was created in September 2026 and has 29 stars and zero forks as of October 2026. As a solo-maintained project with limited community history, it carries early-stage risk: breaking changes, delayed bug responses, or abandonment. Production deployments should monitor the repository activity.
- No Cross-Device Sync or Native Mobile App: Documents are saved as local `.md` files or exported. There is no built-in sync across devices, no cloud storage integration, and no native mobile application. Users who switch between machines must move files manually or set up their own sync layer.
Tech stack
FAQ
No. The tool runs entirely in the browser as a static website. A strict Content Security Policy forbids the page from making any external network request. Documents exist only in your browser tab and on your local disk when you save them. There is no backend, no analytics, and no telemetry.
Yes. Download the prebuilt site archive from the GitHub Releases page, extract it into your web root, and it works without further configuration. Docker Compose, nginx, and Caddy config files are included in the repository for teams that prefer those deployment paths. No database or runtime is required.
Typora is a paid desktop application with a polished inline writing experience. Markdown Preview Editor is free, MIT licensed, and runs in a browser on any static host. Typora has more refined typography and document export options; Markdown Preview Editor has stricter privacy guarantees and zero installation overhead for browser-based or internal-server use.
Yes. The editor meets WCAG 2.2 AA with zero violations as verified by axe-core in the automated test suite. Tabs, the pane divider, and all menus are keyboard-navigable. The accessibility check runs across light and dark themes, the preview pane, and the phone layout as part of CI.
In addition to GitHub-flavored Markdown and syntax-highlighted code blocks, it supports KaTeX for math equations, Mermaid for diagrams and flowcharts, and drag-and-drop image embedding. Documents can be exported as self-contained HTML or saved as standard `.md` files.