Upgrade to mathjax 2.6.1 and set output to SVG. Fixes #942

This commit is contained in:
benweet 2016-02-17 21:55:26 +00:00
parent 8584d145c2
commit 0c7cb240cf
3 changed files with 8 additions and 9 deletions

View File

@ -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);
}

View File

@ -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": [

View File

@ -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',