[Docs] Author math with remark-math ($...$) instead of <Math formula> strings; add macros
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- markdown
- Domain
- documentation
Research direction
Start with docs/astro.config.mjs, docs/src/components/Math.astro, and the listed MDX pages; inspect the remark-math and rehype-katex configuration and current formula usage. Convert the formulas, add shared macros and equation references, and document the macros in CONTENT_GUIDE. Done means no <Math> usage remains and npm run build fails for an invalid formula; the issue leaves equation numbering and the optional MathML output open to implementation choices.
Written by the indexing model from the issue text.
Description
Summary
remark-math/rehype-katex are configured but no page uses them; formulas are passed as JS template strings to <Math formula={\vec{p}}>, which doubles every backslash and breaks editor tooling. There are no shared macros or equation references.
Location
docs/astro.config.mjs:10-13docs/src/components/Math.astro:1-30docs/src/content/docs/pyspace/ray-marching.mdx:27-35
Evidence
ray-marching.mdx:29 formula={`\\vec{p}_{n+1} = \\vec{p}_n + \\vec{d} \\cdot \\text{SDF}(\\vec{p}_n)`}
grep -l '<Math' docs/src/content -r | wc -l -> 10 files ; pages using $..$ syntax -> 0
Expected
Authors write $x_{n+1} = r x_n (1-x_n)$ and $$...$$ in MDX; KaTeX renders at build time with shared macros and numbered, linkable equations.
Proposed fix
- Codemod
<Math formula={...} displayMode />->$$...$$(un-escape backslashes) across 10 files; deleteMath.astro. katexoptions:macrosfromsrc/math/macros.ts(\R,\N,\Z,\vec,\norm,\abs...),strict: 'warn',throwOnError: truein CI so bad TeX fails the build.- Equation labels via
\label{eq:lorenz}+\eqref(KaTeXtrustfor\htmlId) or a small rehype plugin. - Optional: MathML output for accessibility (
output: 'htmlAndMathml').
Acceptance criteria
- No
<Mathusage remains - A deliberately invalid formula fails
npm run build - Macros documented in CONTENT_GUIDE
Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-026
Generated by Claude Code
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day
-
Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100