Commit message:
static: drop marked dep, extract code fences with a regex
Replace static/markdown.ts's use of marked with a small regex that
concatenates the contents of all fenced code blocks (```...```) in the
input file. This matches the original behavior, where the only marked
renderer override was code: ({text}) => text -- the test harness only
ever needed the inner HTML of the fenced blocks, not the surrounding
markdown.
Motivation: marked v5+ is ESM-only, so updating it past 4.0.10 would
require migrating the jest test setup to ESM mode (extensionsToTreatAsEsm,
useESM, --experimental-vm-modules, "import { jest } from '@jest/globals'"
in every test file, an import.meta.url-derived __dirname polyfill, etc.).
That is a much larger surgery than the trivial markdown extraction
warrants. Removing the dep entirely is simpler and leaves no security
surface from an unmaintained 4.x line.
@types/marked is also no longer needed.