Upgrade to mathjax 2.6.1 and set output to SVG. Fixes #942
This commit is contained in:
parent
8584d145c2
commit
0c7cb240cf
13
Gulpfile.js
13
Gulpfile.js
@ -177,15 +177,14 @@ gulp.task('cache-manifest', function() {
|
|||||||
.pipe(inject(gulp.src([
|
.pipe(inject(gulp.src([
|
||||||
'./res/bower-libs/MathJax/MathJax.js',
|
'./res/bower-libs/MathJax/MathJax.js',
|
||||||
'./res/bower-libs/MathJax/config/Safe.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/CloseX-31.png',
|
||||||
'./res/bower-libs/MathJax/images/MenuArrow-15.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/extensions/**/*.*',
|
||||||
'./res/bower-libs/MathJax/fonts/HTML-CSS/TeX/woff/**/*.*',
|
|
||||||
'./res/bower-libs/MathJax/jax/element/**/*.*',
|
'./res/bower-libs/MathJax/jax/element/**/*.*',
|
||||||
'./res/bower-libs/MathJax/jax/output/HTML-CSS/autoload/**/*.*',
|
'./res/bower-libs/MathJax/jax/output/SVG/autoload/**/*.*',
|
||||||
'./res/bower-libs/MathJax/jax/output/HTML-CSS/fonts/TeX/**/*.*'
|
'./res/bower-libs/MathJax/jax/output/SVG/fonts/TeX/**/*.*'
|
||||||
], {
|
], {
|
||||||
read: false,
|
read: false,
|
||||||
cwd: './public'
|
cwd: './public'
|
||||||
@ -196,10 +195,10 @@ gulp.task('cache-manifest', function() {
|
|||||||
ignoreExtensions: true,
|
ignoreExtensions: true,
|
||||||
transform: function(filepath) {
|
transform: function(filepath) {
|
||||||
if(filepath == '/res/bower-libs/MathJax/MathJax.js') {
|
if(filepath == '/res/bower-libs/MathJax/MathJax.js') {
|
||||||
filepath += '?config=TeX-AMS_HTML';
|
filepath += '?config=TeX-AMS_SVG';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
filepath += '?rev=2.5.0';
|
filepath += '?rev=2.6.1';
|
||||||
}
|
}
|
||||||
return filepath.substring(1);
|
return filepath.substring(1);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"js-sequence-diagrams": "https://github.com/benweet/js-sequence-diagrams.git#c59e2e39d9185e9291f37b73fc596eba5ed33650",
|
"js-sequence-diagrams": "https://github.com/benweet/js-sequence-diagrams.git#c59e2e39d9185e9291f37b73fc596eba5ed33650",
|
||||||
"flowchart": "https://github.com/adrai/flowchart.js.git#751717d3db6437def9a5f8b1cb73e8bb81b5833a",
|
"flowchart": "https://github.com/adrai/flowchart.js.git#751717d3db6437def9a5f8b1cb73e8bb81b5833a",
|
||||||
"monetizejs": "~0.2.0",
|
"monetizejs": "~0.2.0",
|
||||||
"MathJax": "~2.5.0",
|
"MathJax": "2.6.1",
|
||||||
"alertify.js": "https://github.com/fabien-d/alertify.js.git#fc2e06fa39873363dda199204b8544119ab060bf"
|
"alertify.js": "https://github.com/fabien-d/alertify.js.git#fc2e06fa39873363dda199204b8544119ab060bf"
|
||||||
},
|
},
|
||||||
"main": [
|
"main": [
|
||||||
|
@ -23,7 +23,7 @@ requirejs.config({
|
|||||||
'mousetrap-record': 'bower-libs/mousetrap/plugins/record/mousetrap-record',
|
'mousetrap-record': 'bower-libs/mousetrap/plugins/record/mousetrap-record',
|
||||||
toMarkdown: 'bower-libs/to-markdown/src/to-markdown',
|
toMarkdown: 'bower-libs/to-markdown/src/to-markdown',
|
||||||
text: 'bower-libs/requirejs-text/text',
|
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',
|
bootstrap: 'bower-libs/bootstrap/dist/js/bootstrap',
|
||||||
requirejs: 'bower-libs/requirejs/require',
|
requirejs: 'bower-libs/requirejs/require',
|
||||||
'google-code-prettify': 'bower-libs/google-code-prettify/src/prettify',
|
'google-code-prettify': 'bower-libs/google-code-prettify/src/prettify',
|
||||||
|
Loading…
Reference in New Issue
Block a user