Intent: cut the fat. src/web/highlight-html.ts:22 gives a plain token no class (token.cls === "plain" ? "" : ...), so the .tok-plain { color: inherit; } rule in src/web/style/content.ts (near line 386) never applies.
Done:
[ ] the .tok-plain rule leaves src/web/style/content.ts and its line leaves docs/DESIGN.md §5d
[ ] a test highlights a snippet with plain text and asserts the HTML has no tok-plain, and that the stylesheet has no .tok-plain
[ ] the code view looks the same (one before and after screenshot of a highlighted file in the pull)
[ ] bun scripts/design-lint.ts passes
Files: src/web/style/content.ts, docs/DESIGN.md (one line), one test. Leave the other tok- classes alone.
Intent: cut the fat. src/web/highlight-html.ts:22 gives a plain token no class (
token.cls === "plain" ? "" : ...), so the.tok-plain { color: inherit; }rule in src/web/style/content.ts (near line 386) never applies.Done:
.tok-plainrule leaves src/web/style/content.ts and its line leaves docs/DESIGN.md §5dtok-plain, and that the stylesheet has no.tok-plainbun scripts/design-lint.tspassesFiles: src/web/style/content.ts, docs/DESIGN.md (one line), one test. Leave the other
tok-classes alone.