Fri, 17 Jul 2020 12:25:24 -0500
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])); }