This commit is contained in:
Tony Brix 2018-01-06 11:56:47 -06:00
parent 7ee001a88c
commit 29426551a7
2 changed files with 4 additions and 3 deletions

View File

@ -374,7 +374,7 @@ markdown.pl tests.
In other words, if you have a test to add, add it to `test/new/`. If your test
uses a certain feature, for example, maybe it assumes GFM is *not* enabled, you
can add [front-matter](https://www.npmjs.com/package/front-matter) to the top of
your .md file
your `.md` file
``` yml
---

View File

@ -46,7 +46,6 @@ function load() {
file = path.join(dir, list[i]);
content = fm(fs.readFileSync(file, 'utf8'));
files[path.basename(file)] = {
options: content.attributes,
text: content.body,
@ -418,6 +417,7 @@ function fix() {
function parseArg(argv) {
var argv = process.argv.slice(2)
, options = {}
, opt = ""
, orphans = []
, arg;
@ -477,7 +477,7 @@ function parseArg(argv) {
break;
default:
if (arg.indexOf('--') === 0) {
var opt = camelize(arg.replace(/^--(no-)?/, ''));
opt = camelize(arg.replace(/^--(no-)?/, ''));
if (!marked.defaults.hasOwnProperty(opt)) {
continue;
}
@ -523,6 +523,7 @@ function main(argv) {
}
if (opt.fix) {
// only run fix
return;
}