ID:WORK-006Status:pending
Build math Rune
Priority:mediumComplexity:unknown
math RuneMathematical notation rendered from LaTeX/KaTeX syntax. Supports both inline and block (display) mode. Aliases: equation, formula. This is a core rune.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
display | Boolean | true | No | Block display mode (centered, full-width) vs inline |
label | String | — | No | Equation label for cross-referencing |
{% diagram %} treating content as Mermaid sourceMath<div> (display) or <span> (inline)source (the raw LaTeX string), labelpackages/runes/src/tags/math.ts — raw source extraction pattern (like diagram)packages/runes/src/config.tspackages/lumina/styles/runes/math.csspackages/lumina/index.csspackages/runes/test/tags/math.test.tsRendering strategy mirrors the Diagram rune — either a build-time transform (like @refrakt-md/highlight does for code blocks) or a web component that initializes from the source attribute. Build-time is preferred for performance and SSR.