Skip to content

fix(cli): render Markdown math with KaTeX 0.19 - #125

Merged
huozhi merged 1 commit into
mainfrom
codex/katex-019
Oct 13, 2026
Merged

huozhi merged 1 commit into
mainfrom
codex/katex-019

Conversation

@huozhi

@huozhi huozhi commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Upgrade KaTeX to 0.19.0 for Markdown math rendering.
  • Replace the Marked math adapter dependency, whose peer range rejects KaTeX 0.19, with a small CLI adapter that preserves --math behavior and safety limits.
  • Keep the lockfile change scoped to KaTeX and removal of the incompatible adapter.

Validation

  • pnpm install --frozen-lockfile
  • pnpm run build
  • bun test test/markdown.test.ts (6 passed)
  • pnpm typecheck
  • pnpm test:package
  • bun scripts/test-package-browser.ts
  • DEVJAR_TEST_BROWSER=webkit bun scripts/test-package-browser.ts
  • pnpm test: 78 passed; the three existing update-check tests failed locally as before this change.

@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devjar Building Building Preview Oct 13, 2026 11:11pm UTC

Request Review

@huozhi
huozhi merged commit 3398b99 into main Oct 13, 2026
3 of 4 checks passed
@huozhi
huozhi deleted the codex/katex-019 branch October 13, 2026 23:15

This branch was successfully deployed

1 active deployment
Preview — 4c1eda6e Deployed Oct 13, 2026 by vercel[bot]
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