From 0c7cb240cff4e938863cb4e1e1ead011518bad0d Mon Sep 17 00:00:00 2001 From: benweet Date: Wed, 17 Feb 2016 21:55:26 +0000 Subject: [PATCH] Upgrade to mathjax 2.6.1 and set output to SVG. Fixes #942 --- Gulpfile.js | 13 ++++++------- bower.json | 2 +- public/res/main.js | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 14e42fb8..f15ce549 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -177,15 +177,14 @@ gulp.task('cache-manifest', function() { .pipe(inject(gulp.src([ './res/bower-libs/MathJax/MathJax.js', './res/bower-libs/MathJax/config/Safe.js', - './res/bower-libs/MathJax/config/TeX-AMS_HTML.js', + './res/bower-libs/MathJax/config/TeX-AMS_SVG.js', './res/bower-libs/MathJax/images/CloseX-31.png', './res/bower-libs/MathJax/images/MenuArrow-15.png', - './res/bower-libs/MathJax/jax/output/HTML-CSS/jax.js', + './res/bower-libs/MathJax/jax/output/SVG/jax.js', './res/bower-libs/MathJax/extensions/**/*.*', - './res/bower-libs/MathJax/fonts/HTML-CSS/TeX/woff/**/*.*', './res/bower-libs/MathJax/jax/element/**/*.*', - './res/bower-libs/MathJax/jax/output/HTML-CSS/autoload/**/*.*', - './res/bower-libs/MathJax/jax/output/HTML-CSS/fonts/TeX/**/*.*' + './res/bower-libs/MathJax/jax/output/SVG/autoload/**/*.*', + './res/bower-libs/MathJax/jax/output/SVG/fonts/TeX/**/*.*' ], { read: false, cwd: './public' @@ -196,10 +195,10 @@ gulp.task('cache-manifest', function() { ignoreExtensions: true, transform: function(filepath) { if(filepath == '/res/bower-libs/MathJax/MathJax.js') { - filepath += '?config=TeX-AMS_HTML'; + filepath += '?config=TeX-AMS_SVG'; } else { - filepath += '?rev=2.5.0'; + filepath += '?rev=2.6.1'; } return filepath.substring(1); } diff --git a/bower.json b/bower.json index 3e4ce4db..cb3d4b67 100644 --- a/bower.json +++ b/bower.json @@ -32,7 +32,7 @@ "js-sequence-diagrams": "https://github.com/benweet/js-sequence-diagrams.git#c59e2e39d9185e9291f37b73fc596eba5ed33650", "flowchart": "https://github.com/adrai/flowchart.js.git#751717d3db6437def9a5f8b1cb73e8bb81b5833a", "monetizejs": "~0.2.0", - "MathJax": "~2.5.0", + "MathJax": "2.6.1", "alertify.js": "https://github.com/fabien-d/alertify.js.git#fc2e06fa39873363dda199204b8544119ab060bf" }, "main": [ diff --git a/public/res/main.js b/public/res/main.js index 8b199bd8..7bfb7871 100644 --- a/public/res/main.js +++ b/public/res/main.js @@ -23,7 +23,7 @@ requirejs.config({ 'mousetrap-record': 'bower-libs/mousetrap/plugins/record/mousetrap-record', toMarkdown: 'bower-libs/to-markdown/src/to-markdown', text: 'bower-libs/requirejs-text/text', - mathjax: '../res/bower-libs/MathJax/MathJax.js?config=TeX-AMS_HTML', + mathjax: '../res/bower-libs/MathJax/MathJax.js?config=TeX-AMS_SVG', bootstrap: 'bower-libs/bootstrap/dist/js/bootstrap', requirejs: 'bower-libs/requirejs/require', 'google-code-prettify': 'bower-libs/google-code-prettify/src/prettify',