drewkhoury.com about drew
markdown-lives.web.app

md

A markdown editor that doesn't suck. Side-by-side, source-mapped scroll sync, edit local files in place.

tool · 2026 · no public repo

Solid.js · Vite · TypeScript · CodeMirror 6 · Unified · Remark · Rehype · KaTeX · Shiki · Firebase Hosting

markdown-lives.web.app

Side-by-side editor + preview with true bidirectional scroll sync — mapped to source lines, not percentages. Frontmatter-driven templates, KaTeX math, Shiki syntax highlighting, GFM tables/footnotes, Cmd-K palette, and File System Access for editing local files in place.

Most markdown editors do one job well — write or preview, rarely both. md does both, side by side, with true bidirectional scroll sync that maps cursor lines to rendered blocks (not the lazy percentage-based version everyone ships).

Frontmatter-driven templates. Add template: rfc to your YAML frontmatter and the preview restyles as an RFC. template: resume and the page reads like a CV. Each template is a scoped CSS overlay — drop your own in to add one.

Edit local files in place. In Chromium browsers, Open and Save use the File System Access API — you're editing the actual file on disk, not uploading a copy. Safari and Firefox fall back to a download.

Built because: Obsidian is too much, IA Writer is too closed, VS Code's preview is WYSIWYG-adjacent, and almost every web markdown editor smushes scroll positions instead of mapping source-to-render properly.