Skip to content

Count page views and project clicks with PostHog (EU servers)? It loads only if you choose Allow. Privacy

Markdown Editor live preview
All projects

Markdown Editor

Write and preview markdown side by side without switching tools.

Writing markdown for blogs and docs meant switching between a separate editor and a separate previewer, with no live sync.

Tech Domain · Book Dev|Published|Evidence: Live|Next.js, TypeScript

A public deployment is available to try.

Case Study

Before

Writing markdown content for blogs and docs required switching between editors and previewers.

After

Write markdown on the left and see the rendered result on the right as you type, entirely in the browser.

How it's solved

Built a split-pane markdown editor, now at /markdown-editor in the Devtools Workbench suite, with a live preview from a small built-in renderer (headings, nested lists, tables, quotes, code blocks, links, bold and italic), safe link filtering, copy-source; nothing is saved, so the text is gone when the page is closed.

Trade-offs

The renderer is not CommonMark-complete; there is no syntax highlighting, export (HTML, PDF, or MDX) or themes, and nothing is saved between visits.

Related Articles

Further reading on related topics from the blog

Related Projects

More in Tech Domain · Book Dev