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

Khan / perseus / 5466665243 / 1 – cypress
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2023 04:36PM UTC
Files 359
Run time 6s
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

05 Jul 2023 04:24PM UTC coverage: 26.415%. Remained the same
cypress – 5466665243.1

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

1925 of 9589 branches covered (20.08%)

Branch coverage included in aggregate %.

5519 of 18592 relevant lines covered (29.68%)

937.55 hits per line

Source Files on job cypress - 5466665243.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5466665243
  • f7af06d9 on github
  • Prev Job for on main (#5426252202.1)
  • Next Job for on main (#5477458285.1)
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