Skip to content

Build time latex - #32

Merged
cb341 merged 3 commits into
mainfrom
feature/build-time-katex
Sep 18, 2026
Merged

cb341 merged 3 commits into
mainfrom
feature/build-time-katex

Conversation

@cb341

@cb341 cb341 commented Sep 18, 2026

Copy link
Copy Markdown
Owner
  • Dropped client side KaTeX dependency
  • During build, katex is evaluated and replaced with svgs + meta code
  • Hover / Clipboard properly captures meta code instead of just ignoring content.
  • Faster rendering as we don't need to fetch the minified mjs on initial request

Downsides

  • A bit ugly when CSS is not enabled (meta is visible, spacing is missing)
  • A lot of complexity
Before After
CleanShot 2026-09-18 at 19 24 11@2x CleanShot 2026-09-18 at 19 23 42@2x

@cb341 cb341 self-assigned this Sep 18, 2026
@cb341
cb341 merged commit d26051f into main Sep 18, 2026
2 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