fix weird nodejs length/index

Fri, 17 Jul 2020 12:25:24 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 17 Jul 2020 12:25:24 -0500
changeset 31
7b21ec8ec96a
parent 30
3ac53da03439
child 32
cef0a28afae0

fix weird nodejs length/index

markdown_it.js file | annotate | diff | comparison | revisions
--- a/markdown_it.js	Fri Jul 17 10:00:47 2020 -0500
+++ b/markdown_it.js	Fri Jul 17 12:25:24 2020 -0500
@@ -25,7 +25,7 @@
     console.error(`Usage: ${process.argv[1]} input_file [katex_options.json]`)
     process.exit(1);
 }
-if(process.argv.length>2){
+if(process.argv.length>3){
     katexOptions = JSON.parse(fs.readFileSync(process.argv[3]));
 }
 

mercurial