Commit 7463568e authored by Robert Knight's avatar Robert Knight

Replace vendored KaTeX with package from npm

Remove our vendored copy of KaTeX and use the package from npm.

This will make it easier to update KaTeX in future. The version being
used here is exactly the same (0.1.1) as the version we previously had
checked into src/sidebar/vendor.
parent 1118937d
......@@ -3465,6 +3465,12 @@
"resolved": "https://registry.npmjs.org/karma-sinon/-/karma-sinon-1.0.5.tgz",
"dev": true
},
"katex": {
"version": "0.1.1",
"from": "katex@0.1.1",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.1.1.tgz",
"dev": true
},
"kew": {
"version": "0.7.0",
"from": "kew@>=0.7.0 <0.8.0",
......
......@@ -66,6 +66,7 @@
"karma-mocha-reporter": "^2.0.4",
"karma-phantomjs-launcher": "^1.0.1",
"karma-sinon": "^1.0.5",
"katex": "^0.1.1",
"lodash.debounce": "^4.0.3",
"lodash.get": "^4.3.0",
"mkdirp": "^0.5.1",
......@@ -118,8 +119,7 @@
},
"browser": {
"annotator": "./src/annotator/vendor/annotator.js",
"hammerjs": "./node_modules/hammerjs/hammer.js",
"katex": "./src/sidebar/vendor/katex.js"
"hammerjs": "./node_modules/hammerjs/hammer.js"
},
"browserify-shim": {
"annotator": {
......
......@@ -38,6 +38,5 @@ module.exports = {
// when including the bundle in another project.
noParseModules: [
'jquery',
'katex',
],
};
......@@ -57,7 +57,6 @@ module.exports = function(config) {
browserify: {
debug: true,
extensions: ['.coffee'],
noParse: [require.resolve('./sidebar/vendor/katex')],
configure: function (bundle) {
bundle.plugin('proxyquire-universal');
},
......@@ -65,7 +64,7 @@ module.exports = function(config) {
transform: [
'coffeeify',
istanbul({
ignore: ['**/node_modules/**', '**/katex.js', '**/*.html', '**/*.svg'],
ignore: ['**/node_modules/**', '**/*.html', '**/*.svg'],
// There is an outstanding but with karma-converage and istanbul
// in regards to doing source mapping and transpiling CoffeeScript
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment