• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5466665243
69%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2023 04:27PM UTC
Jobs 2
Files 519
Run time 17s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5466665243

push

github

web-flow
Fix spurious KaTeX errors in the exercise editor (#592)

## Summary:
Previously, any use of `\ce` in a TeX expression resulted in the
exercise editor displaying a KaTeX error, even though the expression
preview rendered fine (and was in fact being rendered by KaTeX). This
was because the preview and the error pane were using different KaTeX
configurations. The preview had the mhchem extension installed, and the
error pane didn't.

This commit fixes the issue by adding mhchem to the error checker's
KaTeX.

Issue: https://khanacademy.atlassian.net/browse/LC-997

Test plan:

Install the dev version of Perseus in webapp.

Edit an exercise. Add the following TeX somewhere:

`$\ce{Ba}$`

You should see "Ba" rendered in an upright font in the preview. The
"KaTeX Errors" pane should not display.

Change the TeX to `$\mbox1$`. The "KaTeX Errors" pane *should* display
(KaTeX doesn't have an `\mbox` command). A "1" will be rendered in
the preview by the MathJax 2 fallback renderer.

Author: benchristel

Reviewers: nixterrimus

Required Reviewers:

Approved By: nixterrimus

Checks: ✅ finish_coverage, ✅ Publish npm snapshot (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Lint, Typecheck, and Test (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/592

7558 of 16352 branches covered (46.22%)

Branch coverage included in aggregate %.

21352 of 47261 relevant lines covered (45.18%)

947.03 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5466665243.1 05 Jul 2023 04:27PM UTC 0
26.41
GitHub Action Run
2 jest 5466665243.2 05 Jul 2023 04:36PM UTC 0
62.64
GitHub Action Run
Source Files on build 5466665243
Detailed source file information is not available for this build.
  • Back to Repo
  • f7af06d9 on github
  • Prev Build on main (#5426252202)
  • Next Build on main (#5477458285)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc