clean up
This commit is contained in:
parent
7ee001a88c
commit
29426551a7
@ -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
|
||||
---
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user