Open source · 2026

A Markdown editor with live preview that never uploads your writing

A free, open-source Markdown editor with live preview that runs in the browser: GitHub-style tables and task lists, code highlighting, KaTeX maths and Mermaid diagrams, with export to HTML or PDF and share links that need no server.

For
Open source
Role
Design and engineering
Year
2026
Industry
Developer Tools
Markdown Preview preview

Overview

Writing a README or a doc often means pasting it into a site that wants an account, or that keeps a copy.

Markdown Preview renders as you type, entirely in the browser. It exports to HTML or PDF, and share links carry the whole document after the # in the address, which browsers never send to a server.

The problem

  • Online Markdown previewers often need sign-up or store your text.
  • Many skip the parts developers use: tables, maths and diagrams.
  • Sharing a draft usually means uploading it somewhere.

What it had to do

  • Render everything GitHub Flavored Markdown supports, plus maths and diagrams.
  • Make opening a share link from a stranger safe.
  • Keep the page light: load heavy parts only when a document needs them.

How I built it

  1. Safe by default

    Every render passes through DOMPurify, KaTeX runs with trust off, and Mermaid runs in strict mode with its theme settings locked, so a shared document cannot run code or restyle the page.

  2. Share links without a server

    Documents are compressed with fflate and stored in the URL fragment, so a link is the document and nothing is stored anywhere.

  3. Load only what is used

    Mermaid and its layout engines download only when a document contains a diagram.

What shipped

  • Live editor with split, write and preview layouts, scroll sync and drafts kept on the device.
  • Export to Markdown, HTML (copy or a styled standalone page) and PDF.
  • Pages for Markdown to HTML and Markdown to PDF, and a cheat sheet with rendered examples.

What came of it

  • Live at markdown.vivekbhange.tech and open source under the MIT licence.
  • Tested against hostile share links carrying scripts, event handlers and javascript: links.

What it does not do

  • The editor is a plain text box, with no syntax highlighting while you type yet.
  • Very long documents make very long share links, which some chat apps cut short.

Built with

  • Open Source
  • Astro
  • Markdown
  • Privacy

Useful?

Have something like this to build?

Built by Vivek Bhange, Full-Stack AI Engineer in Pune, India. Open for freelance and collaboration.

Easter egg hunt

This site hides 16 surprises. Found ones stay found on this device. On a phone, type secret words into the command bar (the >_ button).

  1. RickrolledNot found yet

    Show hint

    My photo has a secret. Double-click it (on a phone, press and hold).

  2. Impatient clickerNot found yet

    Show hint

    Click anywhere, fast, about 25 times in a row.

  3. Agent of changeNot found yet

    Show hint

    Type the word that means "make it different".

  4. Gravity checkNot found yet

    Show hint

    Type my first name.

  5. Secret wordNot found yet

    Show hint

    Type something friendly, like "chai" or "namaste".

  6. HackerNot found yet

    Show hint

    Type what hackers do (four letters).

  7. The snapNot found yet

    Show hint

    Type the name of a purple villain who snaps.

  8. Sharp eyesNot found yet

    Show hint

    Something almost invisible floats on the screen. Find it and click it (desktop).

  9. Root accessNot found yet

    Show hint

    Open the command bar (press /, or tap >_ on a phone), then try to become root.

  10. Duck hunterNot found yet

    Show hint

    A rubber duck is hiding on the 3D island.

  11. World travellerNot found yet

    Show hint

    Visit all four views.

  12. Night owlNot found yet

    Show hint

    Come back between midnight and 4 a.m.

  13. Arcade regularNot found yet

    Show hint

    Play every quick game in the Arcade (the ones that open on the Arcade page).

  14. Chain reactorNot found yet

    Show hint

    Set off 30 bursts with a single move in Critical Mass.

  15. Last one standingNot found yet

    Show hint

    Win a match of Drop Zone.

  16. Code whizNot found yet

    Show hint

    Get 10 answers right in a row in Code Clash.

zsh — visitor@vivek: ~

Ask about Vivek

AI answers from this site's content. It can make mistakes.