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:
Erik Demaine
2018-03-15 09:28:23 -04:00
committed by ylemkimon
parent 4f29c5a942
commit 95ea3e3095
2 changed files with 11 additions and 3 deletions

10
cli.js
View File

@@ -47,7 +47,15 @@ const options = require("nomnom")
abbr: "b",
flag: true,
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", {
full: "max-size",