T11a Academic Core Smoke Test
Rendering verification for T11a. If you see source instead of a rendered figure, the corresponding shortcode isn’t wired up.
1. MathJax
Inline: the mass–energy equation \(E = mc^2\).
Display:
$$ \int_{-\infty}^{\infty} e^{-x^2},dx = \sqrt{\pi} $$
2. Mermaid
flowchart LR A[content] --> B[markup hook] B --> C[Page.Store hasMermaid] C --> D[scripts.html init]
3. Markmap
4. Pseudocode
\begin{algorithm}
\caption{Euclid's algorithm (gcd)}
\begin{algorithmic}
\PROCEDURE{Gcd}{$a, b$}
\WHILE{$b \neq 0$}
\STATE $t \gets b$
\STATE $b \gets a \bmod b$
\STATE $a \gets t$
\ENDWHILE
\RETURN $a$
\ENDPROCEDURE
\end{algorithmic}
\end{algorithm}
5. AntV G2
(antv-g2 needs a data file to be present; this is just a placeholder call. With no script= attribute it skips the actual chart, but the g2 library should still load correctly.)
6. Theme switch propagation (05-04-theme-broadcast)
After loading this page, click the sidebar “Theme” button. You should see:
- mermaid flowchart palette flips immediately (neutral ↔ dark), no double-render ghost
- If a real antv-g2 chart is present, its palette flips immediately
- After 5 toggles
window.antvG2Charts.lengthdoes not grow (memory-leak guard) - No console errors during the toggle
- markmap node text / links / code blocks follow the switch (CSS tokens
inherit into
<foreignObject>; branch strokes do not follow because of inline strokes inside the library — known limitation, see.trellis/spec/frontend/themed-components.md§4)