tex.gaato.net provides an endpoint to render LaTeX strings as SVG images.
- Cloudflare Workers compatible runtime
- TypeScript
- MathJax v4.1.0
pnpm installThis project enforces dependency build-script policy in pnpm-workspace.yaml. If a new dependency requires install scripts, explicitly review and allow it there.
pnpm install --frozen-lockfile
pnpm buildpnpm devThis builds TypeScript and starts wrangler dev using wrangler.toml.
pnpm deployBefore first deploy, authenticate once:
pnpm dlx wrangler loginThe repository includes deploy workflow.
Set the following repository secrets before using it:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
Renders a LaTeX string as an SVG image.
| Parameter | Type | Description |
|---|---|---|
| latex | string | LaTeX string to be rendered |
- 200 OK
image/svg+xml: SVG image
- 400 Bad Request
text/plain: Error message if the LaTeX string is missing or if there's a LaTeX syntax error
- 500 Internal Server Error
text/plain: Error message if any other error occurs