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 extension to third_party MathJax.
Browse files Browse the repository at this point in the history
Summary:
Some browsers recently started request MathZoom.js recently.  I was unable
to determine why this started so I've decided to include MathZoom.js.

Test Plan:
- update submodule in webapp and deploy
- verify that 404s for MathZoom.js in the logs disappear.

Reviewers: emily

Reviewed By: emily

Subscribers: alpert

Differential Revision: https://phabricator.khanacademy.org/D21557
  • Loading branch information
kevinbarabash committed Sep 10, 2015
1 parent 8f87810 commit 3870ebc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 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","MathZoom.js"],
extensions: ["tex2jax.js"],
TeX: {
extensions: [
"AMSmath.js",
Expand Down
1 change: 0 additions & 1 deletion build/kathjax.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
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-eaf1d9cafdc2fc68897cf72d30d67d5a", waitForMathJaxReady);
loadScript(urlBase + "third_party/MathJax/2.1/MathJax.js?config=KAthJax-f44d133888282e24c89e102b0a3fa99c", 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 @@ -3,5 +3,6 @@
local-only/**
genfiles/**
third_party/**
third_party/MathJax/2.1/config/*
build/third_party/**
test/**

Large diffs are not rendered by default.

0 comments on commit 3870ebc

Please sign in to comment.