mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Fix cli.js: add nomnom dependency, add -u option (#1218)
* Fix cli.js: add nomnom dependency, add -u option * Add `nomnom` dependency (not dev dependency): fix #1216 * Add -u option for new `unicodeTextInMathMode` option * Reword color option doc * Fix comments from review
This commit is contained in:
10
cli.js
10
cli.js
@@ -47,7 +47,15 @@ const options = require("nomnom")
|
|||||||
abbr: "b",
|
abbr: "b",
|
||||||
flag: true,
|
flag: true,
|
||||||
default: false,
|
default: false,
|
||||||
help: "Restores the old behavior of (pre-0.8.0) KaTeX.",
|
help: "Makes \\color behave like LaTeX's 2-argument \\textcolor, " +
|
||||||
|
"instead of LaTeX's one-argument \\color mode change.",
|
||||||
|
})
|
||||||
|
.option("unicodeTextInMathMode", {
|
||||||
|
full: "unicode-text-in-math-mode",
|
||||||
|
abbr: "u",
|
||||||
|
flag: true,
|
||||||
|
default: false,
|
||||||
|
help: "Add support for unicode text characters in math mode.",
|
||||||
})
|
})
|
||||||
.option("maxSize", {
|
.option("maxSize", {
|
||||||
full: "max-size",
|
full: "max-size",
|
||||||
|
@@ -40,7 +40,6 @@
|
|||||||
"less": "~2.7.1",
|
"less": "~2.7.1",
|
||||||
"less-loader": "^4.0.5",
|
"less-loader": "^4.0.5",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
"nomnom": "^1.8.1",
|
|
||||||
"object-assign": "^4.1.0",
|
"object-assign": "^4.1.0",
|
||||||
"pako": "1.0.4",
|
"pako": "1.0.4",
|
||||||
"pre-commit": "^1.2.2",
|
"pre-commit": "^1.2.2",
|
||||||
@@ -83,7 +82,8 @@
|
|||||||
"test:lint"
|
"test:lint"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"match-at": "^0.1.1"
|
"match-at": "^0.1.1",
|
||||||
|
"nomnom": "^1.8.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"snapshotSerializers": [
|
"snapshotSerializers": [
|
||||||
|
Reference in New Issue
Block a user