Skip to content

Markdown math: offline typesetter for inline and display formulas (#462) - #501

Merged
raiseCatError merged 3 commits into
devfrom
feature/v024-math
Oct 21, 2026
Merged

raiseCatError merged 3 commits into
devfrom
feature/v024-math

Conversation

@raiseCatError

Copy link
Copy Markdown
Owner

Adds src/markdown/math.ts: a tokenizer, recursive-descent parser and box layout (stacked fractions, roots, scripts, big operators with limits, delimiters, matrices, cases, \text). Inline $…$ follows GitHub's rules; display $$…$$ and ```math` fences become blocks with source spans. Unsupported or oversize input stays as source with a reason. Works in viewer, preview, split and hybrid; Safe Glyphs uses ASCII. KaTeX via the browser is deferred. Physical QA item added as NOT RUN.

…, roots, scripts, operators and matrices; unsupported input stays as source
…actions and roots, column-exact two-dimensional scripts, \limits, function spacing, exact source fallback, $$ pairing and paragraph interruption, code spans first, outline agrees with the renderer
@raiseCatError
raiseCatError merged commit 7da8000 into dev Oct 21, 2026
12 checks passed
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