@@ -3897,7 +3897,7 @@ function resolvePlugin(name, options) {
3897
3897
3898
3898
module.exports = function (args, opts) {
3899
3899
if (!opts) opts = {};
3900
-
3900
+
3901
3901
var flags = { bools : {}, strings : {}, unknownFn: null };
3902
3902
3903
3903
if (typeof opts['unknown'] === 'function') {
@@ -3911,7 +3911,7 @@ module.exports = function (args, opts) {
3911
3911
flags.bools[key] = true;
3912
3912
});
3913
3913
}
3914
-
3914
+
3915
3915
var aliases = {};
3916
3916
Object.keys(opts.alias || {}).forEach(function (key) {
3917
3917
aliases[key] = [].concat(opts.alias[key]);
@@ -3930,12 +3930,12 @@ module.exports = function (args, opts) {
3930
3930
});
3931
3931
3932
3932
var defaults = opts['default'] || {};
3933
-
3933
+
3934
3934
var argv = { _ : [] };
3935
3935
Object.keys(flags.bools).forEach(function (key) {
3936
3936
setArg(key, defaults[key] === undefined ? false : defaults[key]);
3937
3937
});
3938
-
3938
+
3939
3939
var notFlags = [];
3940
3940
3941
3941
if (args.indexOf('--') !== -1) {
@@ -3957,7 +3957,7 @@ module.exports = function (args, opts) {
3957
3957
? Number(val) : val
3958
3958
;
3959
3959
setKey(argv, key.split('.'), value);
3960
-
3960
+
3961
3961
(aliases[key] || []).forEach(function (x) {
3962
3962
setKey(argv, x.split('.'), value);
3963
3963
});
@@ -3981,7 +3981,7 @@ module.exports = function (args, opts) {
3981
3981
o[key] = [ o[key], value ];
3982
3982
}
3983
3983
}
3984
-
3984
+
3985
3985
function aliasIsBoolean(key) {
3986
3986
return aliases[key].some(function (x) {
3987
3987
return flags.bools[x];
@@ -3990,7 +3990,7 @@ module.exports = function (args, opts) {
3990
3990
3991
3991
for (var i = 0; i < args.length; i++) {
3992
3992
var arg = args[i];
3993
-
3993
+
3994
3994
if (/^--.+=/.test(arg)) {
3995
3995
// Using [\s\S] instead of . because js doesn't support the
3996
3996
// 'dotall' regex modifier. See:
@@ -4027,29 +4027,29 @@ module.exports = function (args, opts) {
4027
4027
}
4028
4028
else if (/^-[^-]+/.test(arg)) {
4029
4029
var letters = arg.slice(1,-1).split('');
4030
-
4030
+
4031
4031
var broken = false;
4032
4032
for (var j = 0; j < letters.length; j++) {
4033
4033
var next = arg.slice(j+2);
4034
-
4034
+
4035
4035
if (next === '-') {
4036
4036
setArg(letters[j], next, arg)
4037
4037
continue;
4038
4038
}
4039
-
4039
+
4040
4040
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
4041
4041
setArg(letters[j], next.split('=')[1], arg);
4042
4042
broken = true;
4043
4043
break;
4044
4044
}
4045
-
4045
+
4046
4046
if (/[A-Za-z]/.test(letters[j])
4047
4047
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
4048
4048
setArg(letters[j], next, arg);
4049
4049
broken = true;
4050
4050
break;
4051
4051
}
4052
-
4052
+
4053
4053
if (letters[j+1] && letters[j+1].match(/\W/)) {
4054
4054
setArg(letters[j], arg.slice(j+2), arg);
4055
4055
broken = true;
@@ -4059,7 +4059,7 @@ module.exports = function (args, opts) {
4059
4059
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
4060
4060
}
4061
4061
}
4062
-
4062
+
4063
4063
var key = arg.slice(-1)[0];
4064
4064
if (!broken && key !== '-') {
4065
4065
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
@@ -4089,17 +4089,17 @@ module.exports = function (args, opts) {
4089
4089
}
4090
4090
}
4091
4091
}
4092
-
4092
+
4093
4093
Object.keys(defaults).forEach(function (key) {
4094
4094
if (!hasKey(argv, key.split('.'))) {
4095
4095
setKey(argv, key.split('.'), defaults[key]);
4096
-
4096
+
4097
4097
(aliases[key] || []).forEach(function (x) {
4098
4098
setKey(argv, x.split('.'), defaults[key]);
4099
4099
});
4100
4100
}
4101
4101
});
4102
-
4102
+
4103
4103
if (opts['--']) {
4104
4104
argv['--'] = new Array();
4105
4105
notFlags.forEach(function(key) {
@@ -26609,15 +26609,15 @@ module.exports = function (rows_, opts) {
26609
26609
var stringLength = opts.stringLength
26610
26610
|| function (s) { return String(s).length; }
26611
26611
;
26612
-
26612
+
26613
26613
var dotsizes = reduce(rows_, function (acc, row) {
26614
26614
forEach(row, function (c, ix) {
26615
26615
var n = dotindex(c);
26616
26616
if (!acc[ix] || n > acc[ix]) acc[ix] = n;
26617
26617
});
26618
26618
return acc;
26619
26619
}, []);
26620
-
26620
+
26621
26621
var rows = map(rows_, function (row) {
26622
26622
return map(row, function (c_, ix) {
26623
26623
var c = String(c_);
@@ -26631,15 +26631,15 @@ module.exports = function (rows_, opts) {
26631
26631
else return c;
26632
26632
});
26633
26633
});
26634
-
26634
+
26635
26635
var sizes = reduce(rows, function (acc, row) {
26636
26636
forEach(row, function (c, ix) {
26637
26637
var n = stringLength(c);
26638
26638
if (!acc[ix] || n > acc[ix]) acc[ix] = n;
26639
26639
});
26640
26640
return acc;
26641
26641
}, []);
26642
-
26642
+
26643
26643
return map(rows, function (row) {
26644
26644
return map(row, function (c, ix) {
26645
26645
var n = (sizes[ix] - stringLength(c)) || 0;
@@ -26652,7 +26652,7 @@ module.exports = function (rows_, opts) {
26652
26652
+ c + Array(Math.floor(n / 2 + 1)).join(' ')
26653
26653
;
26654
26654
}
26655
-
26655
+
26656
26656
return c + s;
26657
26657
}).join(hsep).replace(/\s+$/, '');
26658
26658
}).join('\n');
@@ -35184,13 +35184,13 @@ function tableCell(node) {
35184
35184
/* 302 */
35185
35185
/***/ (function(module) {
35186
35186
35187
- module.exports = {"name":"remark","version":"10.0.0","description":"Markdown processor powered by plugins","license":"MIT","keywords":["markdown","abstract","syntax","tree","ast","parse","stringify","process"],"homepage":"http://remark.js.org","repository":"https://github.com/remarkjs/remark/tree/master/packages/remark","bugs":"https://github.com/remarkjs/remark/issues","author":"Titus Wormer <
[email protected] > (http://wooorm.com)","contributors":["Titus Wormer <
[email protected] > (http://wooorm.com)"],"files":["index.js"],"dependencies":{"remark-parse":"^6.0.0","remark-stringify":"^6.0.0","unified":"^7.0.0"},"devDependencies":{"tape":"^4.9.1"},"scripts":{"test":"tape test.js"},"xo":false,"_resolved":"https://registry.npmjs.org/remark/-/remark-10.0.0.tgz","_integrity":"sha512-0fZvVmd9CgDi1qHGsRTyhpJShw60r3/4OSdRpAx+I7CmE8/Jmt829T9KWHpw2Ygw3chRZ26sMorqb8aIolU9tQ==","_from":"
[email protected] "};
35187
+ module.exports = {"_args":[["
[email protected] ","/Users/trott/io.js/tools/node-lint-md-cli-rollup"]],"_from":"
[email protected] ","_id":"
[email protected] ","_inBundle":false,"_integrity":"sha512-0fZvVmd9CgDi1qHGsRTyhpJShw60r3/4OSdRpAx+I7CmE8/Jmt829T9KWHpw2Ygw3chRZ26sMorqb8aIolU9tQ==","_location":"/remark","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"
[email protected] ","name":"remark","escapedName":"remark","rawSpec":"10.0.0","saveSpec":null,"fetchSpec":"10.0.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/remark/-/remark-10.0.0.tgz","_spec":"10.0.0","_where":"/Users/trott/io.js/tools/node-lint-md-cli-rollup","author":{"name":"Titus Wormer","email":"
[email protected] ","url":"http://wooorm.com"},"bugs":{"url":"https://github.com/remarkjs/remark/issues"},"contributors":[{"name":"Titus Wormer","email":"
[email protected] ","url":"http://wooorm.com"}],"dependencies":{"remark-parse":"^6.0.0","remark-stringify":"^6.0.0","unified":"^7.0.0"},"description":"Markdown processor powered by plugins","devDependencies":{"tape":"^4.9.1"},"files":["index.js"],"homepage":"http://remark.js.org","keywords":["markdown","abstract","syntax","tree","ast","parse","stringify","process"],"license":"MIT","name":"remark","repository":{"type":"git","url":"https://github.com/remarkjs/remark/tree/master/packages/remark"},"scripts":{"test":"tape test.js"},"version":"10.0.0","xo":false};
35188
35188
35189
35189
/***/ }),
35190
35190
/* 303 */
35191
35191
/***/ (function(module) {
35192
35192
35193
- module.exports = {"name":"node-lint-md-cli-rollup","description":"remark packaged for node markdown linting","version":"1.0.0","devDependencies":{"@zeit/ncc":"^0.2.0"},"dependencies":{"markdown-extensions":"^1.1.0","remark":"^10.0.0","remark-lint":"^6.0.3","remark-preset-lint-node":"^1.3.1 ","unified-args":"^6.0.0","unified-engine":"^5.1.0"},"main":"src/cli-entry.js","scripts":{"build":"ncc build","build-node":"npm run build && cp dist/index.js ../lint-md.js"}};
35193
+ module.exports = {"name":"node-lint-md-cli-rollup","description":"remark packaged for node markdown linting","version":"1.0.0","devDependencies":{"@zeit/ncc":"^0.2.0"},"dependencies":{"markdown-extensions":"^1.1.0","remark":"^10.0.0","remark-lint":"^6.0.3","remark-preset-lint-node":"^1.4.0 ","unified-args":"^6.0.0","unified-engine":"^5.1.0"},"main":"src/cli-entry.js","scripts":{"build":"ncc build","build-node":"npm run build && cp dist/index.js ../lint-md.js"}};
35194
35194
35195
35195
/***/ }),
35196
35196
/* 304 */
@@ -35210,10 +35210,7 @@ module.exports.plugins = [
35210
35210
__webpack_require__(316),
35211
35211
__webpack_require__(93),
35212
35212
__webpack_require__(93),
35213
- [
35214
- __webpack_require__(317),
35215
- 'space'
35216
- ],
35213
+ [__webpack_require__(317), "space"],
35217
35214
__webpack_require__(320),
35218
35215
__webpack_require__(321),
35219
35216
__webpack_require__(322),
@@ -35237,25 +35234,27 @@ module.exports.plugins = [
35237
35234
[
35238
35235
__webpack_require__(340),
35239
35236
{
35240
- 'checked': 'x', 'unchecked': ' '
35237
+ checked: "x",
35238
+ unchecked: " "
35241
35239
}
35242
35240
],
35243
- [__webpack_require__(341), ' fenced' ],
35244
- [__webpack_require__(342), '`' ],
35245
- [__webpack_require__(343), 'md' ],
35241
+ [__webpack_require__(341), " fenced" ],
35242
+ [__webpack_require__(342), "`" ],
35243
+ [__webpack_require__(343), "md" ],
35246
35244
[__webpack_require__(344), 1],
35247
- [__webpack_require__(345), ' atx' ],
35245
+ [__webpack_require__(345), " atx" ],
35248
35246
[
35249
35247
__webpack_require__(346),
35250
35248
[
35251
- { no: 'Github', yes: 'GitHub' },
35252
- { no: 'Javascript', yes: 'JavaScript' },
35253
- { no: 'Node.JS', yes: 'Node.js' },
35254
- { no: 'v8', yes: 'V8' }
35249
+ { no: "End-Of-Life", yes: "End-of-Life" },
35250
+ { no: "Github", yes: "GitHub" },
35251
+ { no: "Javascript", yes: "JavaScript" },
35252
+ { no: "Node.JS", yes: "Node.js" },
35253
+ { no: "v8", yes: "V8" }
35255
35254
]
35256
35255
],
35257
- [__webpack_require__(347), '*' ],
35258
- [__webpack_require__(348), ' padded' ]
35256
+ [__webpack_require__(347), "*" ],
35257
+ [__webpack_require__(348), " padded" ]
35259
35258
];
35260
35259
35261
35260
@@ -36842,7 +36841,7 @@ module.exports = {"addendum":"addenda","aircraft":"aircraft","alga":"algae","alu
36842
36841
* Options: `number`, default: `80`.
36843
36842
*
36844
36843
* Ignores nodes that cannot be wrapped, such as headings, tables,
36845
- * code, and definitions .
36844
+ * code, definitions, HTML, and JSX .
36846
36845
*
36847
36846
* Ignores images, links, and inline code if they start before the wrap, end
36848
36847
* after the wrap, and there’s no white-space after them.
@@ -36868,6 +36867,8 @@ module.exports = {"addendum":"addenda","aircraft":"aircraft","alga":"algae","alu
36868
36867
* | -- | --------- | -- | ---- | ------ | -- | ---- | ------ | ------- | ----- | ----- | ---- |
36869
36868
* | be | helped | | | | | | | | | | . |
36870
36869
*
36870
+ * <a><b><i><p><q><s><u>alpha bravo charlie delta echo foxtrot golf</u></s></q></p></i></b></a>
36871
+ *
36871
36872
* The following is also fine, because there is no white-space.
36872
36873
*
36873
36874
* <http://this-long-url-with-a-long-domain-is-invalid.co.uk/a-long-path?query=variables>.
@@ -36941,10 +36942,11 @@ function maximumLineLength(tree, file, pref) {
36941
36942
var index = -1
36942
36943
var lineLength
36943
36944
36944
- visit(tree, ['heading', 'table', 'code', 'definition'], ignore)
36945
+ // Note: JSX is from MDX: <https://github.com/mdx-js/specification>.
36946
+ visit(tree, ['heading', 'table', 'code', 'definition', 'html', 'jsx'], ignore)
36945
36947
visit(tree, ['link', 'image', 'inlineCode'], inline)
36946
36948
36947
- /* Iterate over every line, and warn for violating lines. */
36949
+ // Iterate over every line, and warn for violating lines.
36948
36950
while (++index < length) {
36949
36951
lineLength = lines[index].length
36950
36952
@@ -36956,9 +36958,9 @@ function maximumLineLength(tree, file, pref) {
36956
36958
}
36957
36959
}
36958
36960
36959
- /* Finally, whitelist some inline spans, but only if they occur at or after
36960
- * the wrap. However, when they do, and there’s white-space after it, they
36961
- * are not whitelisted. */
36961
+ // Finally, whitelist some inline spans, but only if they occur at or after
36962
+ // the wrap. However, when they do, and there’s white-space after it, they
36963
+ // are not whitelisted.
36962
36964
function inline(node, pos, parent) {
36963
36965
var next = parent.children[pos + 1]
36964
36966
var initial
@@ -36972,13 +36974,12 @@ function maximumLineLength(tree, file, pref) {
36972
36974
initial = start(node)
36973
36975
final = end(node)
36974
36976
36975
- /* No whitelisting when starting after the border, or ending before it. */
36977
+ // No whitelisting when starting after the border, or ending before it.
36976
36978
if (initial.column > style || final.column < style) {
36977
36979
return
36978
36980
}
36979
36981
36980
- /* No whitelisting when there’s white-space after
36981
- * the link. */
36982
+ // No whitelisting when there’s white-space after the link.
36982
36983
if (
36983
36984
next &&
36984
36985
start(next).line === initial.line &&
@@ -36997,7 +36998,7 @@ function maximumLineLength(tree, file, pref) {
36997
36998
}
36998
36999
}
36999
37000
37000
- /* Whitelist from `initial` to `final`, zero-based. */
37001
+ // Whitelist from `initial` to `final`, zero-based.
37001
37002
function whitelist(initial, final) {
37002
37003
while (initial < final) {
37003
37004
lines[initial++] = ''
@@ -39599,16 +39600,16 @@ function tableCellPadding(tree, file, pref) {
39599
39600
var entry
39600
39601
var final
39601
39602
39602
- /* Check rows. */
39603
+ // Check rows.
39603
39604
while (++index < length) {
39604
39605
row = rows[index]
39605
39606
cells = row.children
39606
39607
cellCount = cells.length
39607
- column = -2 /* Start without a first cell */
39608
+ column = -2 // Start without a first cell.
39608
39609
next = null
39609
39610
final = undefined
39610
39611
39611
- /* Check fences (before, between, and after cells) */
39612
+ // Check fences (before, between, and after cells).
39612
39613
while (++column < cellCount) {
39613
39614
cell = next
39614
39615
next = cells[column + 1]
@@ -39623,7 +39624,7 @@ function tableCellPadding(tree, file, pref) {
39623
39624
if (cell && cell.children.length !== 0 && final !== undefined) {
39624
39625
entries.push({node: cell, start: final, end: pos, index: column})
39625
39626
39626
- /* Detect max space per column. */
39627
+ // Detect max space per column.
39627
39628
sizes[column] = Math.max(sizes[column] || 0, size(cell))
39628
39629
} else {
39629
39630
final = undefined
@@ -39670,7 +39671,7 @@ function tableCellPadding(tree, file, pref) {
39670
39671
if (style === 0) {
39671
39672
reason += 'compact'
39672
39673
39673
- /* Ignore every cell except the biggest in the column. */
39674
+ // Ignore every cell except the biggest in the column.
39674
39675
if (size(cell) < sizes[index]) {
39675
39676
return
39676
39677
}
@@ -39680,7 +39681,7 @@ function tableCellPadding(tree, file, pref) {
39680
39681
if (spacing > style) {
39681
39682
reason += ' with 1 space, not ' + spacing
39682
39683
39683
- /* May be right or center aligned. */
39684
+ // May be right or center aligned.
39684
39685
if (size(cell) < sizes[index]) {
39685
39686
return
39686
39687
}
0 commit comments