Add experimental marked version for inline mathjax parsing.

parent 231ec1ae
Pipeline #11016 passed with stages
in 3 minutes and 11 seconds
......@@ -5,57 +5,65 @@
"requires": true,
"dependencies": {
"@angular-devkit/build-optimizer": {
"version": "0.0.33",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.0.33.tgz",
"integrity": "sha512-qdGAwI3Yd3QIJ4FJsJcAyBVThUVEGKqSm0E3njSVSQkEatjvxHXNDvexBieQDPiUhjYG2Yyobor8nW5EMxPieQ==",
"version": "0.0.34",
"resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.0.34.tgz",
"integrity": "sha512-uSvyKtkDnfnBt6GGJ0m1nFI9IylKq6KoQil04GobhDCXFyin6Gbr50focx3jaizwDuh4v/x11fEUi5/cSUkKhA==",
"dev": true,
"requires": {
"loader-utils": "1.1.0",
"source-map": "0.5.7",
"typescript": "2.4.2",
"typescript": "2.6.2",
"webpack-sources": "1.1.0"
},
"dependencies": {
"typescript": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz",
"integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=",
"dev": true
}
}
},
"@angular-devkit/core": {
"version": "0.0.21",
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-0.0.21.tgz",
"integrity": "sha512-6cfjRE6W+ZOxE8Xk3PFRA8kJJK2sJhd5ZGQ/BsVYyz2cxN8Zb3Gmu1wxg7l5TiPbOjqfn797tBEpKGBXJV85xw==",
"version": "0.0.22",
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-0.0.22.tgz",
"integrity": "sha512-zxrNtTiv60liye/GGeRMnnGgLgAWoqlMTfPLMW0D1qJ4bbrPHtme010mpxS3QL4edcDtQseyXSFCnEkuo2MrRw==",
"dev": true,
"requires": {
"source-map": "0.5.7"
}
},
"@angular-devkit/schematics": {
"version": "0.0.37",
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-0.0.37.tgz",
"integrity": "sha512-CF7+W4Flkvd6z4d/dvH0IP5PV8gSBHr4lE7eyScDpuet7s+I4b6SYh5bWDEvyDF+hZwDTFDyrHHj77kyeJu+8g==",
"version": "0.0.39",
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-0.0.39.tgz",
"integrity": "sha512-YoXE7mej7ARdjpiNAsg2NguIe8e3BusZRUQ7xA10AMftuPVZV2v7vV0M0j1vmH2WFEK8Tn4TqHsd5njDcvwX4g==",
"dev": true,
"requires": {
"@angular-devkit/core": "0.0.21",
"@angular-devkit/core": "0.0.22",
"@ngtools/json-schema": "1.1.0",
"minimist": "1.2.0",
"rxjs": "5.5.2"
"rxjs": "5.5.4"
}
},
"@angular/animations": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.0.3.tgz",
"integrity": "sha1-8IsHAHsUn6EmecNG+lWCD1RLGeA=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.0.5.tgz",
"integrity": "sha1-igCJAKec2eyw7nQVNOxDXM6VOaU=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/cli": {
"version": "1.5.4",
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-1.5.4.tgz",
"integrity": "sha512-Z5nltoJL09rr3dw9qFzcJ3YQEP63jqnhdmIxGcU5zQ7DyV9ptNm0slhL17d9AtqI/eIN4TshvOkfd72+oEVSIA==",
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@angular/cli/-/cli-1.5.5.tgz",
"integrity": "sha512-qAooJraZwT9o2W7yx6gY6fnc7PEMlGzu60ELZJfC51MnoYMPKiIEFYeWanCSNju1P7jfpeBXuwp1qEMZCX73Zw==",
"dev": true,
"requires": {
"@angular-devkit/build-optimizer": "0.0.33",
"@angular-devkit/schematics": "0.0.37",
"@angular-devkit/build-optimizer": "0.0.34",
"@angular-devkit/schematics": "0.0.39",
"@ngtools/json-schema": "1.1.0",
"@ngtools/webpack": "1.8.4",
"@schematics/angular": "0.1.7",
"@ngtools/webpack": "1.8.5",
"@schematics/angular": "0.1.9",
"autoprefixer": "6.7.7",
"chalk": "2.2.2",
"circular-dependency-plugin": "3.0.0",
......@@ -69,7 +77,7 @@
"exports-loader": "0.6.4",
"extract-text-webpack-plugin": "3.0.0",
"file-loader": "1.1.5",
"fs-extra": "4.0.2",
"fs-extra": "4.0.3",
"glob": "7.0.6",
"html-webpack-plugin": "2.30.1",
"istanbul-instrumenter-loader": "2.0.0",
......@@ -90,7 +98,7 @@
"postcss-url": "7.3.0",
"raw-loader": "0.5.1",
"resolve": "1.5.0",
"rxjs": "5.5.2",
"rxjs": "5.5.4",
"sass-loader": "6.0.6",
"semver": "5.4.1",
"silent-error": "1.1.0",
......@@ -107,7 +115,7 @@
"webpack-dev-server": "2.9.5",
"webpack-merge": "4.1.1",
"webpack-sources": "1.1.0",
"webpack-subresource-integrity": "1.0.1",
"webpack-subresource-integrity": "1.0.2",
"zone.js": "0.8.18"
},
"dependencies": {
......@@ -124,25 +132,25 @@
}
},
"@angular/common": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-5.0.3.tgz",
"integrity": "sha1-mwuHTgyMsIjXx94q9ywsPz69ALs=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-5.0.5.tgz",
"integrity": "sha1-oFMDIL7vp7NEbHtcaxDX7aQrWZg=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/compiler": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.0.3.tgz",
"integrity": "sha1-RYF8mjKxsQPAMHsPVWYPUw9KBqo=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.0.5.tgz",
"integrity": "sha1-EoMpvTopYRYAFIDFbsuV8CA6qwc=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/compiler-cli": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.0.3.tgz",
"integrity": "sha1-gg/pX1ZTwUGK2aycqegZqHnM5K4=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.0.5.tgz",
"integrity": "sha1-TCXObwoE6snlYAe+Njn4YXKpx+o=",
"dev": true,
"requires": {
"chokidar": "1.7.0",
......@@ -152,63 +160,63 @@
}
},
"@angular/core": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-5.0.3.tgz",
"integrity": "sha1-JWZAD2cTvxw59+ALwDpjKAqH5ms=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-5.0.5.tgz",
"integrity": "sha1-nwMq/0z6zODjNikzhGb5O7pMvsQ=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/forms": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-5.0.3.tgz",
"integrity": "sha1-IH+Swr2JZg3aWFjvWNHqwfLK8ac=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-5.0.5.tgz",
"integrity": "sha1-PpEL/jRhjEgr8hqGWfqaGy28Hzo=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/http": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/http/-/http-5.0.3.tgz",
"integrity": "sha1-o7mkJHxLd0VuSVSWVdTB0YWeB10=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/http/-/http-5.0.5.tgz",
"integrity": "sha1-cBz3qNkX7WAnR7sCxf7zUptI8qk=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/language-service": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-5.0.3.tgz",
"integrity": "sha1-6MIVgeBGTqUDY+jw1J17an5rPL8=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-5.0.5.tgz",
"integrity": "sha1-UBm96pOqijxFqD61IQZJFt6jDm8=",
"dev": true
},
"@angular/platform-browser": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.0.3.tgz",
"integrity": "sha1-SshyQEoqgWLdKKWxZCOLdr9eEmE=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.0.5.tgz",
"integrity": "sha1-cQOchbK8Xj9EBRUf/R4glsTzc6E=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/platform-browser-dynamic": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.0.3.tgz",
"integrity": "sha1-vm3PA6BPpRxqBIS0Dl8afX5UzIc=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.0.5.tgz",
"integrity": "sha1-16x0xf/UyaEzupCvFgQCJm6SNR0=",
"requires": {
"tslib": "1.8.0"
}
},
"@angular/router": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-5.0.3.tgz",
"integrity": "sha1-YWzGp64zV1tU5hO3CvXH8pHIzR4=",
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-5.0.5.tgz",
"integrity": "sha1-m/ZEgLJk/YzfqWpqGb+8JXJ0Ulo=",
"requires": {
"tslib": "1.8.0"
}
},
"@ng-bootstrap/ng-bootstrap": {
"version": "1.0.0-beta.5",
"resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-beta.5.tgz",
"integrity": "sha1-2iuQZrNwGihMrFoWFop33vlHtKs="
"version": "1.0.0-beta.6",
"resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-beta.6.tgz",
"integrity": "sha1-Z2y2wcYzTDs00NVJk4OGupl5ZGI="
},
"@ngtools/json-schema": {
"version": "1.1.0",
......@@ -217,9 +225,9 @@
"dev": true
},
"@ngtools/webpack": {
"version": "1.8.4",
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-1.8.4.tgz",
"integrity": "sha512-/1d1aJ/W/VV2DnLDd2WMF5NV3lvYbG4euNd9GbMD4HhOfDJyEmBkl2DJ3+iPF5lOpR27DQnhKV64c8S7enxLBQ==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-1.8.5.tgz",
"integrity": "sha512-caqEQuxypjZTQkO4wRykX4Mp7FCHUApTym5Yjr6VuM+zR4uVzjBceIaT/3a0X+p6iU4dmd6DpT2y96xki/YVSQ==",
"dev": true,
"requires": {
"chalk": "2.2.2",
......@@ -242,12 +250,12 @@
"integrity": "sha1-nBbQfNBwxnraJwoulAKB64JrP0M="
},
"@schematics/angular": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-0.1.7.tgz",
"integrity": "sha512-3dZbRkM7akVCazr9T7gX+BOKri1Mn/N36o36Nojf8LSRxMo7QSJ9s651RPc5snYqpbKrTXZXUO4xKknAf4x+Ng==",
"version": "0.1.9",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-0.1.9.tgz",
"integrity": "sha512-I9XVDbcvr0yvuM18SWcQFksjiiCGoJFTBrc0I5bMJx+++agugXftZC7oUPUM8G5Z004C+58dI7vXQfxo2SCkAA==",
"dev": true,
"requires": {
"@angular-devkit/core": "0.0.21"
"@angular-devkit/core": "0.0.22"
}
},
"@techiediaries/ngx-qrcode": {
......@@ -274,9 +282,9 @@
}
},
"@types/node": {
"version": "8.0.53",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.53.tgz",
"integrity": "sha512-54Dm6NwYeiSQmRB1BLXKr5GELi0wFapR1npi8bnZhEcu84d/yQKqnwwXQ56hZ0RUbTG6L5nqDZaN3dgByQXQRQ==",
"version": "8.0.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.55.tgz",
"integrity": "sha512-K8w0FWNsIRcw615d/Et90wMRvLfg8XH1T77fC0xObbusE3+eXwnitdoF9j0CS9zBt8A57J/TKgRVe7RX9ZlT1g==",
"dev": true
},
"@types/q": {
......@@ -360,9 +368,9 @@
}
},
"ajv": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.0.tgz",
"integrity": "sha1-6yhAdG6dxIvV4GOjbj/UAMXqtak=",
"version": "5.5.1",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.1.tgz",
"integrity": "sha1-s4u4h22ehr7plJVqBOch6IskjrI=",
"dev": true,
"requires": {
"co": "4.6.0",
......@@ -654,7 +662,7 @@
"dev": true,
"requires": {
"browserslist": "1.7.7",
"caniuse-db": "1.0.30000772",
"caniuse-db": "1.0.30000779",
"normalize-range": "0.1.2",
"num2fraction": "1.2.2",
"postcss": "5.2.18",
......@@ -1210,8 +1218,8 @@
"integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=",
"dev": true,
"requires": {
"caniuse-db": "1.0.30000772",
"electron-to-chromium": "1.3.27"
"caniuse-db": "1.0.30000779",
"electron-to-chromium": "1.3.28"
}
},
"buffer": {
......@@ -1365,15 +1373,15 @@
"dev": true,
"requires": {
"browserslist": "1.7.7",
"caniuse-db": "1.0.30000772",
"caniuse-db": "1.0.30000779",
"lodash.memoize": "4.1.2",
"lodash.uniq": "4.5.0"
}
},
"caniuse-db": {
"version": "1.0.30000772",
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000772.tgz",
"integrity": "sha1-UarokXaChureSj2DGep21qAbUSs=",
"version": "1.0.30000779",
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000779.tgz",
"integrity": "sha1-nCK2boIXhcT3N0u5HRCTr6HII6Y=",
"dev": true
},
"capture-stack-trace": {
......@@ -2205,12 +2213,6 @@
"source-map": "0.5.7"
}
},
"cuint": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz",
"integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=",
"dev": true
},
"currently-unhandled": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
......@@ -2886,9 +2888,9 @@
"dev": true
},
"electron-to-chromium": {
"version": "1.3.27",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.27.tgz",
"integrity": "sha1-eOy4o5kGYYe7N07t412ccFZagD0=",
"version": "1.3.28",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.28.tgz",
"integrity": "sha1-jdTmRYCGZE6fnwoc8y4qH53/2e4=",
"dev": true
},
"elliptic": {
......@@ -3832,9 +3834,9 @@
}
},
"fs-extra": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.2.tgz",
"integrity": "sha1-+RcExT0bRh+JNFKwwwfZmXZHq2s=",
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz",
"integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==",
"dev": true,
"requires": {
"graceful-fs": "4.1.11",
......@@ -5421,7 +5423,7 @@
"ncname": "1.0.0",
"param-case": "2.1.1",
"relateurl": "0.2.7",
"uglify-js": "3.2.0"
"uglify-js": "3.2.1"
},
"dependencies": {
"commander": {
......@@ -6745,9 +6747,9 @@
}
},
"karma-jasmine": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.0.tgz",
"integrity": "sha1-IuTAa/mhguUpTR9wXjczgRuBCs8=",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz",
"integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=",
"dev": true
},
"karma-jasmine-html-reporter": {
......@@ -6756,7 +6758,7 @@
"integrity": "sha1-SKjl7xiAdhfuK14zwRlMNbQ5Ukw=",
"dev": true,
"requires": {
"karma-jasmine": "1.1.0"
"karma-jasmine": "1.1.1"
}
},
"karma-source-map-support": {
......@@ -7272,9 +7274,7 @@
"dev": true
},
"marked": {
"version": "0.3.6",
"resolved": "https://registry.npmjs.org/marked/-/marked-0.3.6.tgz",
"integrity": "sha1-ssbGGPzOzk74bE/Gy4p8v1rtqNc="
"version": "git+https://github.com/trayhem/marked.git#d9bf7e31b83fb63b07c92e5bfaff6d8ee797fff6"
},
"math-expression-evaluator": {
"version": "1.2.17",
......@@ -9880,11 +9880,11 @@
}
},
"rxjs": {
"version": "5.5.2",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.2.tgz",
"integrity": "sha512-oRYoIKWBU3Ic37fLA5VJu31VqQO4bWubRntcHSJ+cwaDQBwdnZ9x4zmhJfm/nFQ2E82/I4loSioHnACamrKGgA==",
"version": "5.5.4",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.4.tgz",
"integrity": "sha512-SFq/gVR1/kj8en/CmaFwX1nPTGUJVtQqzF6V6LLNAziizj/+r0VzztVsaAm/byigKrRxYD0RR52DKIt+6S0DJQ==",
"requires": {
"symbol-observable": "1.0.4"
"symbol-observable": "1.0.1"
}
},
"safe-buffer": {
......@@ -9946,7 +9946,7 @@
"integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=",
"dev": true,
"requires": {
"ajv": "5.5.0"
"ajv": "5.5.1"
}
},
"scss-tokenizer": {
......@@ -11000,9 +11000,9 @@
}
},
"symbol-observable": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz",
"integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0="
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz",
"integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ="
},
"tapable": {
"version": "0.2.8",
......@@ -11345,9 +11345,9 @@
"dev": true
},
"uglify-js": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.2.0.tgz",
"integrity": "sha512-L98DlTshoPGnZGF8pr3MoE+CCo6n9joktHNHMPkckeBV8xTVc4CWtC0kGGhQsIvnX2Ug4nXFTAeE7SpTrPX2tg==",
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.2.1.tgz",
"integrity": "sha512-BhZTJPmOKPSUcjnx2nlfaOQKHLyjjT4HFyzFWF1BUErx9knJNpdW94ql5o8qVxeNL+8IAWjEjnPvASH2yZnkMg==",
"dev": true,
"requires": {
"commander": "2.12.2",
......@@ -11385,7 +11385,7 @@
"find-cache-dir": "1.0.0",
"schema-utils": "0.3.0",
"source-map": "0.5.7",
"uglify-es": "3.2.0",
"uglify-es": "3.2.1",
"webpack-sources": "1.1.0",
"worker-farm": "1.5.2"
},
......@@ -11397,9 +11397,9 @@
"dev": true
},
"uglify-es": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.2.0.tgz",
"integrity": "sha512-eD4rjK4o6rzrvE1SMZJLQFEVMnWRUyIu6phJ0BXk5TIthMmP5B4QP0HI8o3bkQB5wf1N4WHA0leZAQyQBAd+Jg==",
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.2.1.tgz",
"integrity": "sha512-c+Fy4VuGvPmT7mj7vEPjRR/iNFuXuOAkufhCtCvTGX0Hr4gCM9YwCnLgHkxr1ngqSODQaDObU3g8SF8uE/tY1w==",
"dev": true,
"requires": {
"commander": "2.12.2",
......@@ -11897,7 +11897,7 @@
"requires": {
"acorn": "5.2.1",
"acorn-dynamic-import": "2.0.2",
"ajv": "5.5.0",
"ajv": "5.5.1",
"ajv-keywords": "2.1.1",
"async": "2.6.0",
"enhanced-resolve": "3.4.1",
......@@ -12373,9 +12373,9 @@
}
},
"webpack-subresource-integrity": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-1.0.1.tgz",
"integrity": "sha1-H8CdRkl9pm5GdDoqUdLMOFucsO0=",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-1.0.2.tgz",
"integrity": "sha1-su1H4cr0hU8frqlmNjcvLFgVVto=",
"dev": true,
"requires": {
"webpack-core": "0.6.9"
......@@ -12573,6 +12573,14 @@
"dev": true,
"requires": {
"cuint": "0.2.2"
},
"dependencies": {
"cuint": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz",
"integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=",
"dev": true
}
}
},
"y18n": {
......
......@@ -28,16 +28,16 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^5.0.3",
"@angular/common": "^5.0.3",
"@angular/compiler": "^5.0.3",
"@angular/core": "^5.0.3",
"@angular/forms": "^5.0.3",
"@angular/http": "^5.0.3",
"@angular/platform-browser": "^5.0.3",
"@angular/platform-browser-dynamic": "^5.0.3",
"@angular/router": "^5.0.3",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"@angular/animations": "^5.0.5",
"@angular/common": "^5.0.5",
"@angular/compiler": "^5.0.5",
"@angular/core": "^5.0.5",
"@angular/forms": "^5.0.5",
"@angular/http": "^5.0.5",
"@angular/platform-browser": "^5.0.5",
"@angular/platform-browser-dynamic": "^5.0.5",
"@angular/router": "^5.0.5",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.6",
"@ngx-translate/core": "^8.0.0",
"@ngx-translate/http-loader": "^2.0.0",
"@techiediaries/ngx-qrcode": "0.0.5",
......@@ -46,21 +46,21 @@
"highlight.js": "^9.12.0",
"intro.js": "^2.8.0-alpha.1",
"jquery": "^3.2.1",
"marked": "^0.3.6",
"marked": "git+https://github.com/trayhem/marked.git",
"messageformat": "^1.1.0",
"ngx-qrcode2": "0.0.5",
"ngx-translate-messageformat-compiler": "^2.0.1",
"popper.js": "^1.13.0",
"rxjs": "^5.5.2",
"rxjs": "^5.5.4",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "^1.5.4",
"@angular/compiler-cli": "^5.0.3",
"@angular/language-service": "^5.0.3",
"@angular/cli": "^1.5.5",
"@angular/compiler-cli": "^5.0.5",
"@angular/language-service": "^5.0.5",
"@types/jasmine": "^2.8.2",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^8.0.53",
"@types/node": "^8.0.55",
"arsnova-click-v2-types": "git+https://git.thm.de/arsnova/arsnova-click-v2-types.git",
"codelyzer": "~4.0.1",
"http-server": "^0.10.0",
......@@ -71,7 +71,7 @@
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine": "^1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"node-sass": "^4.7.2",
"protractor": "~5.2.0",
......@@ -82,7 +82,7 @@
"ts-node": "~3.3.0",
"tslint": "~5.8.0",
"typescript": "2.4.2",
"uglify-js": "^3.1.10"
"uglify-js": "^3.2.1"
},
"keywords": [
"arsnova",
......
......@@ -29,10 +29,12 @@ export class QuestionTextService {
if (this._inputCache[value]) {
return new Promise((resolve => resolve(this._inputCache[value])));
}
const matchForDollar = value.match(/( ?\${1,2}.*\$)/g);
const matchForDollar = value.match(/(\${1,2}.*\$)/g);
const matchForBlock = value.match(/(\\(.)*\\.*)/g);
let result = value;
let mathjaxValues = [];
if (matchForDollar) {
mathjaxValues = mathjaxValues.concat(matchForDollar);
}
......@@ -43,17 +45,23 @@ export class QuestionTextService {
return new Promise((resolve) => {
if (mathjaxValues.length) {
this.parseMathjax(mathjaxValues).then((mathjaxRendered) => {
result = parseGithubFlavoredMarkdown(result);
mathjaxValues.forEach((mathjaxValue: string, index: number) => {
result = result.replace(mathjaxValue, mathjaxRendered[index].svg);
});
result = parseGithubFlavoredMarkdown(result);
this._inputCache[value] = result;
resolve(result);
});
} else {
result = parseGithubFlavoredMarkdown(result);
this._inputCache[value] = result;
resolve(result);
}
});
}
......
......@@ -12,6 +12,7 @@ export function parseGithubFlavoredMarkdown(value: string): string {
sanitize: false,
smartLists: false,
smartypants: false,
mathDelimiters: [['$', '$'], ['\\(', '\\)'], ['\\[', '\\]'], ['$$', '$$'], 'beginend'],
highlight: function (code) {
return highlight.highlightAuto(code).value;
}
......
......@@ -35,6 +35,7 @@ p {
margin: 0;
img {
max-width: 100%;
max-height: 50vh;
}
}
......
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