Gurkirat Singh
← Writing

An interactive post

29 Jun 2026 · #meta #astro

Most posts here are plain markdown. This one is .mdx, which lets me drop components straight into the prose when a post actually needs one.

Everything markdown still works exactly as before — bold, inline code, links, and lists:

  • write in markdown by default
  • reach for a component only when the writing needs it
  • keep the page lean

When a post genuinely needs interactivity, an island handles it. The counter below is an Astro component with a tiny vanilla <script> — interactive, and still no framework:

3

That’s the whole philosophy: markdown for words, a component for the rare moment words aren’t enough.