mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Turn var into const or let
This commit is contained in:
committed by
Kevin Barabash
parent
9b565a6375
commit
bd9db332d2
10
cli.js
10
cli.js
@@ -3,11 +3,11 @@
|
||||
// Reads TeX from stdin, outputs HTML to stdout.
|
||||
/* eslint no-console:0 */
|
||||
|
||||
var katex = require("./");
|
||||
var input = "";
|
||||
const katex = require("./");
|
||||
let input = "";
|
||||
|
||||
// Skip the first two args, which are just "node" and "cli.js"
|
||||
var args = process.argv.slice(2);
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
if (args.indexOf("--help") !== -1) {
|
||||
console.log(process.argv[0] + " " + process.argv[1] +
|
||||
@@ -26,7 +26,7 @@ process.stdin.on("data", function(chunk) {
|
||||
});
|
||||
|
||||
process.stdin.on("end", function() {
|
||||
var options = { displayMode: args.indexOf("--display-mode") !== -1 };
|
||||
var output = katex.renderToString(input, options);
|
||||
const options = { displayMode: args.indexOf("--display-mode") !== -1 };
|
||||
const output = katex.renderToString(input, options);
|
||||
console.log(output);
|
||||
});
|
||||
|
Reference in New Issue
Block a user