Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Add MathZoom.js to MathJax for real
Browse files Browse the repository at this point in the history
Summary:
MathJax was trying to load MathZoom.js even though we removed it from
the config file and rebuilt KathJax.  In this diff we include so that
MathJax is happy when it tries to load it.

Test Plan:
- load http://localhost:8080/math/cc-eighth-grade-math/cc-8th-systems-topic/cc-8th-systems-overview/e/systems_of_equations_with_substitution?mp-r-id=GjFgG84=
- verify that there's no errors in the console and there's no red warning bar at the top of the exercise

Reviewers: emily

Reviewed By: emily

Differential Revision: https://phabricator.khanacademy.org/D21613
  • Loading branch information
kevinbarabash committed Sep 10, 2015
1 parent 3870ebc commit 9a7495c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/kathjax-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MathJax.Hub.Config({
messageStyle: "none",
skipStartupTypeset: true,
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["tex2jax.js"],
extensions: ["tex2jax.js", "MathZoom.js"],
TeX: {
extensions: [
"AMSmath.js",
Expand Down
1 change: 1 addition & 0 deletions build/kathjax.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
pack = [
'extensions/MathEvents.js',
'extensions/MathMenu.js',
'extensions/MathZoom.js',
'extensions/TeX/AMSmath.js',
'extensions/TeX/AMSsymbols.js',
'extensions/TeX/noErrors.js',
Expand Down
2 changes: 1 addition & 1 deletion khan-exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ function loadMathJax() {
if (window.MathJax) {
waitForMathJaxReady();
} else {
loadScript(urlBase + "third_party/MathJax/2.1/MathJax.js?config=KAthJax-f44d133888282e24c89e102b0a3fa99c", waitForMathJaxReady);
loadScript(urlBase + "third_party/MathJax/2.1/MathJax.js?config=KAthJax-186c6982df2f62edb8559effd15b8508", waitForMathJaxReady);
}

function waitForMathJaxReady() {
Expand Down
1 change: 1 addition & 0 deletions lint_blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ local-only/**
genfiles/**
third_party/**
third_party/MathJax/2.1/config/*
third_party/MathJax/2.1/extensions/*
build/third_party/**
test/**

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions third_party/MathJax/2.1/extensions/MathZoom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a7495c

Please sign in to comment.