cms-like editing for markdown with contenteditable and 100 lines of js

2025-06-13

Most static site generators use Markdown, but editing content usually means jumping between your browser and a text editor.

I wanted something smoother:

I couldn’t find anything that did this cleanly. Most solutions were either too complex, required changing my whole stack, or didn’t preserve the same editing/preview flow.

So I built inlinecms — a minimal dev-only CMS using contenteditable, Markdown, and ~100 lines of JavaScript.

Here’s how it works:

The code is rough and the system isn’t production-grade, but it’s:

PRs welcome!