Hello, world
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.
- Ordered lists work.
- 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:
| feature | plain Markdown | MDX |
|---|---|---|
| headings, lists, code | yes | yes |
| tables, footnotes | yes | yes |
| live components | no | yes |
| math | no* | 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 , and so does a centered block:
More soon.