This commit is contained in:
benweet 2017-11-25 00:30:02 +00:00
parent 5c7e0ae662
commit 815c87b5e3
3 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@
"handlebars": "^4.0.10", "handlebars": "^4.0.10",
"indexeddbshim": "^3.0.4", "indexeddbshim": "^3.0.4",
"js-yaml": "^3.9.1", "js-yaml": "^3.9.1",
"katex": "^0.7.1", "katex": "^0.9.0-alpha1",
"markdown-it": "^8.3.1", "markdown-it": "^8.3.1",
"markdown-it-abbr": "^1.0.4", "markdown-it-abbr": "^1.0.4",
"markdown-it-deflist": "^2.0.2", "markdown-it-deflist": "^2.0.2",

View File

@ -79,7 +79,7 @@ extensionSvc.onSectionPreview((elt) => {
try { try {
katex.render(katexElt.textContent, katexElt, { displayMode }); katex.render(katexElt.textContent, katexElt, { displayMode });
} catch (e) { } catch (e) {
// Ignore katexElt.textContent = `${e.message}`;
} }
} }
katexElt.highlighted = true; katexElt.highlighted = true;

View File

@ -4005,11 +4005,11 @@ jsprim@^1.2.2:
json-schema "0.2.3" json-schema "0.2.3"
verror "1.3.6" verror "1.3.6"
katex@^0.7.1: katex@^0.9.0-alpha1:
version "0.7.1" version "0.9.0-alpha1"
resolved "https://registry.yarnpkg.com/katex/-/katex-0.7.1.tgz#06bb5298efad05e1e7228035ba8e1591f3061b8f" resolved "https://registry.yarnpkg.com/katex/-/katex-0.9.0-alpha1.tgz#95e2899fa2aac9927f7e3bc2744d39670dfd8cc5"
dependencies: dependencies:
match-at "^0.1.0" match-at "^0.1.1"
kew@^0.7.0: kew@^0.7.0:
version "0.7.0" version "0.7.0"
@ -4409,9 +4409,9 @@ markdown-it@^8.3.1:
mdurl "^1.0.1" mdurl "^1.0.1"
uc.micro "^1.0.3" uc.micro "^1.0.3"
match-at@^0.1.0: match-at@^0.1.1:
version "0.1.0" version "0.1.1"
resolved "https://registry.yarnpkg.com/match-at/-/match-at-0.1.0.tgz#f561e7709ff9a105b85cc62c6b8ee7c15bf24f31" resolved "https://registry.yarnpkg.com/match-at/-/match-at-0.1.1.tgz#25d040d291777704d5e6556bbb79230ec2de0540"
math-expression-evaluator@^1.2.14: math-expression-evaluator@^1.2.14:
version "1.2.17" version "1.2.17"