Skip to content

feat(wasm): add display mode options to renderLatex and update README#134

Merged
erweixin merged 2 commits into
mainfrom
feat-wasm
Jul 12, 2026
Merged

feat(wasm): add display mode options to renderLatex and update README#134
erweixin merged 2 commits into
mainfrom
feat-wasm

Conversation

@erweixin

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60cc74d8a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread platforms/web/package.json Outdated
"copy-fonts": "node -e \"const fs=require('fs');const path=require('path');const src=path.join(process.cwd(),'node_modules/katex/dist/fonts');const dest=path.join(process.cwd(),'fonts');if(!fs.existsSync(src)){console.error('Run npm install first (katex is a devDependency)');process.exit(1);}fs.mkdirSync(dest,{recursive:true});fs.readdirSync(src).forEach(f=>fs.copyFileSync(path.join(src,f),path.join(dest,f)));console.log('Fonts copied to fonts/');\"",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"test": "npm run build:ts && node --test tests/*.test.mjs"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Generate the WASM pkg before running tests

In a clean checkout this new test target stops in the TypeScript build before any tests run: build:ts compiles src/index.ts, which imports ../pkg/ratex_wasm.js, but pkg/ is generated by build:wasm and is not committed (I checked rg --files platforms/web and there is no platforms/web/pkg). I verified tsc -p platforms/web/tsconfig.build.json fails with TS2307, so npm test only works after a prior WASM build; run build:wasm or provide a test stub/declaration before build:ts.

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploying ratex with  Cloudflare Pages  Cloudflare Pages

Latest commit: a56ccc7
Status: ✅  Deploy successful!
Preview URL: https://71898600.ratex.pages.dev
Branch Preview URL: https://feat-wasm.ratex.pages.dev

View logs

@erweixin erweixin merged commit 1f13acc into main Jul 12, 2026
6 checks passed
@erweixin erweixin deleted the feat-wasm branch July 12, 2026 07:50
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