Hello, world

  • #meta

This is the first post on wrkspc.io. The plan is short essays and small interactive experiments — the kind of page the internet used to have more of.

What’s here

  • The landing page has a live Game of Life running in a canvas.
  • Posts are written in MDX, so future ones can embed the same kind of interactive components inline with the prose — not just format text.

Formatting, the usual stuff

MDX is Markdown plus JSX, so all the standard formatting still works: italics, bold, inline code, and links.

  1. Ordered lists work.
  2. So do nested ones:
    • like this
    • and this

Blockquotes look like this — useful for pulling out a quote or an aside that isn’t quite a full callout.

A fenced code block, syntax-highlighted at build time via Shiki:

function step(grid) {
  return grid.map((row, y) =>
    row.map((alive, x) => (alive ? countNeighbors(grid, x, y) : 0)),
  );
}

GFM tables work too:

featureplain MarkdownMDX
headings, lists, codeyesyes
tables, footnotesyesyes
live componentsnoyes
mathno*yes*

* both need a plugin — see below.

Math

Plain Markdown has no concept of math notation. MDX doesn’t either, out of the box — but the underlying pipeline is remark/rehype, which is pluggable, so this is a config change rather than a workaround.

Inline math works mid-sentence, like the classic eiπ+1=0e^{i\pi} + 1 = 0, and so does a centered block:

n=11n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}

More soon.