Skip to content

Catalog: render inline math in labels, titles and locators - #2592

Merged
PerAlexandersson merged 2 commits into
mainfrom
feat/catalog-label-math
Nov 18, 2026
Merged

PerAlexandersson merged 2 commits into
mainfrom
feat/catalog-label-math

Conversation

@PerAlexandersson

Copy link
Copy Markdown
Owner

Labels on catalog cards and pages showed TeX-like notation as plain text (e.g. P_{n+1}, M_{n-2}, ⊞_d).

  • Generator: labels, page titles and conjecture locators may contain $…$, rendered through the site's existing KaTeX setup on cards, page headers, theorem lists, results/search, the families index and authors pages. Text outside math is escaped. Machine exports (llms.txt, catalog-manifest.json, search-index.json, agent-index.json) keep the $…$ source.
  • Lint: a hard error for _ ^ \ { } outside math, unmatched $, or $$, in labels, titles and locators.
  • Labels: 121 labels and one locator across 46 challenge pages rewritten with $…$; no declaration changed. In the built HTML, TeX characters outside math went from 273 to 0.
  • CSS: long Lean source-path links wrap on narrow screens (they overflowed at 375 px).
  • Checked in headless Chromium at 375 and 1366 px: no KaTeX errors, no new overflow.

Local CI (build, lint-style, runLinter on all 46 changed modules, script tests, private imports) passes.

🤖 Generated with Claude Code

PerAlexandersson and others added 2 commits November 18, 2026 14:34
Labels, page titles and conjecture locators may contain $…$ math, rendered
with the site's KaTeX setup on cards, page headers, theorem lists, results,
search, the families index and authors pages; text outside math is escaped,
and machine exports (llms.txt, manifest, search index, agent index) keep the
$…$ source. A hard lint rejects _ ^ \ { } outside math and unmatched $. The
121 affected labels are rewritten with $…$ (no declaration changes), and long
source-path links now wrap on narrow screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerAlexandersson
PerAlexandersson merged commit 087abb2 into main Nov 18, 2026
5 checks passed
@PerAlexandersson
PerAlexandersson deleted the feat/catalog-label-math branch November 18, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant