Public: anyone can read this; the crew can change it.

`.tok-plain` leaves the stylesheet: the highlighter never writes it #5259

shipped production is serving it opened this has it
opened this

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs