BUCKYVERSE

DEF-1 — Make math render on buckyverse WikiJS (Phase 1) — Design

Status: Approved 2026-07-01
Source item: DEF-1 (work/DEFERRED.md) — re-scoped from “full codexis book build” to the actual root-cause fix
Branch: pluck/def-1-codexis-dome-cookbook-render-math

Goal

Make mathematics render as typeset math on buckyverse WikiJS — both wiki-wide
(by enabling the renderer) and specifically on the Dome Cookbook of Geodesic
Geometry page (by giving its transcription clean, consistent math markup). The
full codexis LaTeX/ebook build remains a deferred follow-up.

Root cause (investigated 2026-07-01)

Math on buckyverse does not render — formulas display as raw literal
$$…$$ / $…$ source, even on the completed codexis build
geodesic_math_and_how_to_use_it/ (which ships 396 inline + 76 block math
markers). The renderers table (from the 2026-03-15 prod backup) shows:

Server-side KaTeX renders to static HTML/MathML at save time and needs no
client JS, so enabling it is the robust fix.

Architecture

Three independent pieces: (1) a one-time WikiJS renderer config change
(user-applied), (2) a re-render of affected pages (WikiJS re-renders on
save), and (3) a content markup cleanup of the Dome Cookbook transcription.
They compose: clean the markup and re-push, have the user enable KaTeX, re-push
to re-render, verify.

Components

1. Enable server-side KaTeX (wiki-wide fix) — user-applied

The user toggles in Administration → Rendering → Markdown: enable KaTeX,
disable MathJax (avoid double-processing $$). Native, reversible, safest.
This design does not write to the prod DB. I coordinate timing and verify;
I do not perform this step.

2. Re-render affected pages

WikiJS caches rendered HTML per page and only re-renders on save. After KaTeX is
enabled:

3. Clean the Dome Cookbook math markup

Current transcriptions have inconsistent math (only 12/48 pages carry any $,
and those mix $\angle$-style symbols with plain-text formulas like
ALT. = 10 sin 60°). Fix:

4. Verify

Sequence

  1. Clean markup → rebuild index.md → re-push Dome Cookbook (git commit + live push).
  2. Ask the user to enable KaTeX / disable MathJax in the Admin UI.
  3. Re-push the Dome Cookbook page to re-render it under KaTeX.
  4. Verify KaTeX renders live; spot-check geodesic_math; report wiki-wide re-render status.

Scope / risk

Testing / verification

Content/ops task; no unit tests. Success =

  1. Dome Cookbook math markup is consistent and KaTeX-valid.
  2. Live Dome Cookbook page renders math (real class="katex" output, no raw $$).
  3. geodesic_math confirms the wiki-wide effect after re-render.