diff --git a/BUILDING.md b/BUILDING.md
index c0a133768fa..37b79a02570 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -225,7 +225,7 @@ Consult previous versions of this document for older versions of Node.js:
The Node.js project uses Python as part of its build process and has
historically only been Python 2 compatible.
-Python 2 will reach its _end-of-life_ at the end of 2019 at which point the
+Python 2 will reach its _End-of-Life_ at the end of 2019 at which point the
interpreter will cease receiving updates. See
for more information.
diff --git a/tools/lint-md.js b/tools/lint-md.js
index 5335fafb1e8..f8e54d6d2f3 100644
--- a/tools/lint-md.js
+++ b/tools/lint-md.js
@@ -16744,9 +16744,9 @@ var colorName$1 = {
"aliceblue": [240, 248, 255],
"antiquewhite": [250, 235, 215],
"aqua": [0, 255, 255],
- "aquamarine": [127, 255, 212],
- "azure": [240, 255, 255],
- "beige": [245, 245, 220],
+ "aquamarine": [127, 255, 212],
+ "azure": [240, 255, 255],
+ "beige": [245, 245, 220],
"bisque": [255, 228, 196],
"black": [0, 0, 0],
"blanchedalmond": [255, 235, 205],
@@ -16885,9 +16885,9 @@ var colorName$1 = {
"turquoise": [64, 224, 208],
"violet": [238, 130, 238],
"wheat": [245, 222, 179],
- "white": [255, 255, 255],
- "whitesmoke": [245, 245, 245],
- "yellow": [255, 255, 0],
+ "white": [255, 255, 255],
+ "whitesmoke": [245, 245, 245],
+ "yellow": [255, 255, 0],
"yellowgreen": [154, 205, 50]
};
@@ -43488,7 +43488,7 @@ const dependencies$1 = {
"markdown-extensions": "^1.1.1",
remark: "^12.0.0",
"remark-lint": "^7.0.0",
- "remark-preset-lint-node": "^1.15.0",
+ "remark-preset-lint-node": "^1.15.1",
"unified-args": "^8.0.0"
};
const main = "dist/index.js";
@@ -44172,583 +44172,6 @@ function lintMessageControl() {
return remarkMessageControl({name: 'lint', source: 'remark-lint'})
}
-var vfileLocation$2 = factory$8;
-
-function factory$8(file) {
- var contents = indices$2(String(file));
-
- return {
- toPosition: offsetToPositionFactory$2(contents),
- toOffset: positionToOffsetFactory$2(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$2(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$2(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$2(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
-var convert_1$2 = convert$5;
-
-function convert$5(test) {
- if (typeof test === 'string') {
- return typeFactory$2(test)
- }
-
- if (test === null || test === undefined) {
- return ok$3
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$2 : matchesFactory$2)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$2(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$5(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$2(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$2(tests) {
- var checks = convertAll$2(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$2(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$3() {
- return true
-}
-
-var unistUtilVisitParents$2 = visitParents$2;
-
-
-
-var CONTINUE$4 = true;
-var SKIP$4 = 'skip';
-var EXIT$4 = false;
-
-visitParents$2.CONTINUE = CONTINUE$4;
-visitParents$2.SKIP = SKIP$4;
-visitParents$2.EXIT = EXIT$4;
-
-function visitParents$2(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$2(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$2(visitor(node, parents));
-
- if (result[0] === EXIT$4) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$4) {
- subresult = toResult$2(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$4 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$4) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$2(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$4, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$2 = visit$2;
-
-
-
-var CONTINUE$5 = unistUtilVisitParents$2.CONTINUE;
-var SKIP$5 = unistUtilVisitParents$2.SKIP;
-var EXIT$5 = unistUtilVisitParents$2.EXIT;
-
-visit$2.CONTINUE = CONTINUE$5;
-visit$2.SKIP = SKIP$5;
-visit$2.EXIT = EXIT$5;
-
-function visit$2(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$2(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
-var unifiedMessageControl$1 = messageControl$2;
-
-function messageControl$2(options) {
- var settings = options || {};
- var name = settings.name;
- var marker = settings.marker;
- var test = settings.test;
- var sources = settings.source;
- var known = settings.known;
- var reset = settings.reset;
- var enable = settings.enable || [];
- var disable = settings.disable || [];
-
- if (!name) {
- throw new Error('Expected `name` in `options`, got `' + name + '`')
- }
-
- if (!marker) {
- throw new Error('Expected `marker` in `options`, got `' + marker + '`')
- }
-
- if (!sources) {
- sources = [name];
- } else if (typeof sources === 'string') {
- sources = [sources];
- }
-
- return transformer
-
- function transformer(tree, file) {
- var toOffset = vfileLocation$2(file).toOffset;
- var initial = !reset;
- var gaps = detectGaps$1(tree, file);
- var scope = {};
- var globals = [];
-
- unistUtilVisit$2(tree, test, visitor);
-
- file.messages = file.messages.filter(filter);
-
- function visitor(node, position, parent) {
- var mark = marker(node);
- var ruleIds;
- var ruleId;
- var verb;
- var index;
- var length;
- var next;
- var pos;
- var tail;
-
- if (!mark || mark.name !== name) {
- return
- }
-
- ruleIds = mark.attributes.split(/\s/g);
- verb = ruleIds.shift();
- next = parent.children[position + 1];
- pos = mark.node.position && mark.node.position.start;
- tail = next && next.position && next.position.end;
-
- if (verb !== 'enable' && verb !== 'disable' && verb !== 'ignore') {
- file.fail(
- 'Unknown keyword `' +
- verb +
- '`: expected ' +
- "`'enable'`, `'disable'`, or `'ignore'`",
- mark.node
- );
- }
-
- length = ruleIds.length;
- index = -1;
-
- // Apply to all rules.
- if (length === 0) {
- if (verb === 'ignore') {
- toggle(pos, false);
- toggle(tail, true);
- } else {
- toggle(pos, verb === 'enable');
- reset = verb !== 'enable';
- }
- } else {
- while (++index < length) {
- ruleId = ruleIds[index];
-
- if (isKnown(ruleId, verb, mark.node)) {
- toggle(pos, verb === 'enable', ruleId);
-
- if (verb === 'ignore') {
- toggle(tail, true, ruleId);
- }
- }
- }
- }
- }
-
- function filter(message) {
- var gapIndex = gaps.length;
- var ruleId = message.ruleId;
- var ranges = scope[ruleId];
- var pos;
-
- // Keep messages from a different source.
- if (!message.source || sources.indexOf(message.source) === -1) {
- return true
- }
-
- // We only ignore messages if they‘re disabled, *not* when they’re not in
- // the document.
- if (!message.line) {
- message.line = 1;
- }
-
- if (!message.column) {
- message.column = 1;
- }
-
- // Check whether the warning is inside a gap.
- pos = toOffset(message);
-
- while (gapIndex--) {
- if (gaps[gapIndex].start <= pos && gaps[gapIndex].end > pos) {
- return false
- }
- }
-
- // Check whether allowed by specific and global states.
- return check(message, ranges, ruleId) && check(message, globals)
- }
-
- // Helper to check (and possibly warn) if a `ruleId` is unknown.
- function isKnown(ruleId, verb, pos) {
- var result = known ? known.indexOf(ruleId) !== -1 : true;
-
- if (!result) {
- file.message(
- 'Unknown rule: cannot ' + verb + " `'" + ruleId + "'`",
- pos
- );
- }
-
- return result
- }
-
- // Get the latest state of a rule.
- // When without `ruleId`, gets global state.
- function getState(ruleId) {
- var ranges = ruleId ? scope[ruleId] : globals;
-
- if (ranges && ranges.length !== 0) {
- return ranges[ranges.length - 1].state
- }
-
- if (!ruleId) {
- return !reset
- }
-
- if (reset) {
- return enable.indexOf(ruleId) !== -1
- }
-
- return disable.indexOf(ruleId) === -1
- }
-
- // Handle a rule.
- function toggle(pos, state, ruleId) {
- var markers = ruleId ? scope[ruleId] : globals;
- var previousState;
-
- if (!markers) {
- markers = [];
- scope[ruleId] = markers;
- }
-
- previousState = getState(ruleId);
-
- if (state !== previousState) {
- markers.push({state: state, position: pos});
- }
-
- // Toggle all known rules.
- if (!ruleId) {
- for (ruleId in scope) {
- toggle(pos, state, ruleId);
- }
- }
- }
-
- // Check all `ranges` for `message`.
- function check(message, ranges, id) {
- // Check the state at the message’s position.
- var index = ranges && ranges.length;
- var length = -1;
- var range;
-
- while (--index > length) {
- range = ranges[index];
-
- /* istanbul ignore if - Generated marker. */
- if (!range.position || !range.position.line || !range.position.column) {
- continue
- }
-
- if (
- range.position.line < message.line ||
- (range.position.line === message.line &&
- range.position.column <= message.column)
- ) {
- return range.state === true
- }
- }
-
- // The first marker ocurred after the first message, so we check the
- // initial state.
- if (!id) {
- return initial || reset
- }
-
- return reset ? enable.indexOf(id) !== -1 : disable.indexOf(id) === -1
- }
- }
-}
-
-// Detect gaps in `tree`.
-function detectGaps$1(tree, file) {
- var lastNode = tree.children[tree.children.length - 1];
- var offset = 0;
- var isGap = false;
- var gaps = [];
-
- // Find all gaps.
- unistUtilVisit$2(tree, one);
-
- // Get the end of the document.
- // This detects if the last node was the last node.
- // If not, there’s an extra gap between the last node and the end of the
- // document.
- if (
- lastNode &&
- lastNode.position &&
- lastNode.position.end &&
- offset === lastNode.position.end.offset &&
- trim$1(file.toString().slice(offset)) !== ''
- ) {
- update();
-
- update(
- tree && tree.position && tree.position.end && tree.position.end.offset - 1
- );
- }
-
- return gaps
-
- function one(node) {
- var pos = node.position;
-
- update(pos && pos.start && pos.start.offset);
-
- if (!node.children) {
- update(pos && pos.end && pos.end.offset);
- }
- }
-
- // Detect a new position.
- function update(latest) {
- if (latest === null || latest === undefined) {
- isGap = true;
- return
- }
-
- if (offset >= latest) {
- return
- }
-
- if (isGap) {
- gaps.push({start: offset, end: latest});
- isGap = false;
- }
-
- offset = latest;
- }
-}
-
-function trim$1(value) {
- return value.replace(/^\s*|\s*$/g, '')
-}
-
-var remarkMessageControl$1 = messageControl$3;
-
-var test$1 = [
- 'html', // Comments are `html` nodes in mdast.
- 'comment' // In MDX, comments have their own node.
-];
-
-function messageControl$3(options) {
- return unifiedMessageControl$1(Object.assign({marker: mdastCommentMarker, test: test$1}, options))
-}
-
-var remarkLint$1 = lint$1;
-
-// `remark-lint`.
-// This adds support for ignoring stuff from messages (``).
-// All rules are in their own packages and presets.
-function lint$1() {
- this.use(lintMessageControl$1);
-}
-
-function lintMessageControl$1() {
- return remarkMessageControl$1({name: 'lint', source: 'remark-lint'})
-}
-
/**
* An Array.prototype.slice.call(arguments) alternative
*
@@ -45188,9 +44611,9 @@ function promise(value) {
return value && 'function' == typeof value.then;
}
-var unifiedLintRule = factory$9;
+var unifiedLintRule = factory$8;
-function factory$9(id, rule) {
+function factory$8(id, rule) {
var parts = id.split(':');
var source = parts[0];
var ruleId = parts[1];
@@ -45813,199 +45236,8 @@ var pluralize = createCommonjsModule(function (module, exports) {
});
});
-var convert_1$3 = convert$6;
-
-function convert$6(test) {
- if (typeof test === 'string') {
- return typeFactory$3(test)
- }
-
- if (test === null || test === undefined) {
- return ok$4
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$3 : matchesFactory$3)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$3(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$6(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$3(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$3(tests) {
- var checks = convertAll$3(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$3(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$4() {
- return true
-}
-
-var unistUtilVisitParents$3 = visitParents$3;
-
-
-
-var CONTINUE$6 = true;
-var SKIP$6 = 'skip';
-var EXIT$6 = false;
-
-visitParents$3.CONTINUE = CONTINUE$6;
-visitParents$3.SKIP = SKIP$6;
-visitParents$3.EXIT = EXIT$6;
-
-function visitParents$3(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$3(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$3(visitor(node, parents));
-
- if (result[0] === EXIT$6) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$6) {
- subresult = toResult$3(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$6 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$6) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$3(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$6, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$3 = visit$3;
-
-
-
-var CONTINUE$7 = unistUtilVisitParents$3.CONTINUE;
-var SKIP$7 = unistUtilVisitParents$3.SKIP;
-var EXIT$7 = unistUtilVisitParents$3.EXIT;
-
-visit$3.CONTINUE = CONTINUE$7;
-visit$3.SKIP = SKIP$7;
-visit$3.EXIT = EXIT$7;
-
-function visit$3(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$3(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
-var start$1 = factory$a('start');
-var end = factory$a('end');
+var start$1 = factory$9('start');
+var end = factory$9('end');
var unistUtilPosition = position$1;
@@ -46016,7 +45248,7 @@ function position$1(node) {
return {start: start$1(node), end: end(node)}
}
-function factory$a(type) {
+function factory$9(type) {
point.displayName = type;
return point
@@ -46056,7 +45288,7 @@ var start$2 = unistUtilPosition.start;
function listItemBulletIndent(tree, file) {
var contents = String(file);
- unistUtilVisit$3(tree, 'list', visitor);
+ unistUtilVisit(tree, 'list', visitor);
function visitor(node) {
node.children.forEach(visitItems);
@@ -46088,197 +45320,6 @@ function listItemBulletIndent(tree, file) {
}
}
-var convert_1$4 = convert$7;
-
-function convert$7(test) {
- if (typeof test === 'string') {
- return typeFactory$4(test)
- }
-
- if (test === null || test === undefined) {
- return ok$5
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$4 : matchesFactory$4)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$4(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$7(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$4(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$4(tests) {
- var checks = convertAll$4(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$4(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$5() {
- return true
-}
-
-var unistUtilVisitParents$4 = visitParents$4;
-
-
-
-var CONTINUE$8 = true;
-var SKIP$8 = 'skip';
-var EXIT$8 = false;
-
-visitParents$4.CONTINUE = CONTINUE$8;
-visitParents$4.SKIP = SKIP$8;
-visitParents$4.EXIT = EXIT$8;
-
-function visitParents$4(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$4(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$4(visitor(node, parents));
-
- if (result[0] === EXIT$8) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$8) {
- subresult = toResult$4(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$8 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$8) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$4(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$8, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$4 = visit$4;
-
-
-
-var CONTINUE$9 = unistUtilVisitParents$4.CONTINUE;
-var SKIP$9 = unistUtilVisitParents$4.SKIP;
-var EXIT$9 = unistUtilVisitParents$4.EXIT;
-
-visit$4.CONTINUE = CONTINUE$9;
-visit$4.SKIP = SKIP$9;
-visit$4.EXIT = EXIT$9;
-
-function visit$4(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$4(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintListItemIndent = unifiedLintRule('remark-lint:list-item-indent', listItemIndent);
var start$3 = unistUtilPosition.start;
@@ -46297,7 +45338,7 @@ function listItemIndent(tree, file, option) {
);
}
- unistUtilVisit$4(tree, 'list', visitor);
+ unistUtilVisit(tree, 'list', visitor);
function visitor(node) {
var spread = node.spread || node.loose;
@@ -46345,197 +45386,6 @@ function listItemIndent(tree, file, option) {
}
}
-var convert_1$5 = convert$8;
-
-function convert$8(test) {
- if (typeof test === 'string') {
- return typeFactory$5(test)
- }
-
- if (test === null || test === undefined) {
- return ok$6
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$5 : matchesFactory$5)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$5(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$8(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$5(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$5(tests) {
- var checks = convertAll$5(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$5(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$6() {
- return true
-}
-
-var unistUtilVisitParents$5 = visitParents$5;
-
-
-
-var CONTINUE$a = true;
-var SKIP$a = 'skip';
-var EXIT$a = false;
-
-visitParents$5.CONTINUE = CONTINUE$a;
-visitParents$5.SKIP = SKIP$a;
-visitParents$5.EXIT = EXIT$a;
-
-function visitParents$5(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$5(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$5(visitor(node, parents));
-
- if (result[0] === EXIT$a) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$a) {
- subresult = toResult$5(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$a ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$a) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$5(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$a, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$5 = visit$5;
-
-
-
-var CONTINUE$b = unistUtilVisitParents$5.CONTINUE;
-var SKIP$b = unistUtilVisitParents$5.SKIP;
-var EXIT$b = unistUtilVisitParents$5.EXIT;
-
-visit$5.CONTINUE = CONTINUE$b;
-visit$5.SKIP = SKIP$b;
-visit$5.EXIT = EXIT$b;
-
-function visit$5(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$5(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var mdastUtilToString = toString$3;
// Get the text content of a node.
@@ -46580,7 +45430,7 @@ var protocol$2 = /^[a-z][a-z+.-]+:\/?/i;
var reason = 'All automatic links must start with a protocol';
function noAutoLinkWithoutProtocol(tree, file) {
- unistUtilVisit$5(tree, 'link', visitor);
+ unistUtilVisit(tree, 'link', visitor);
function visitor(node) {
var children;
@@ -46599,270 +45449,6 @@ function noAutoLinkWithoutProtocol(tree, file) {
}
}
-var vfileLocation$3 = factory$b;
-
-function factory$b(file) {
- var contents = indices$3(String(file));
-
- return {
- toPosition: offsetToPositionFactory$3(contents),
- toOffset: positionToOffsetFactory$3(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$3(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$3(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$3(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
-var convert_1$6 = convert$9;
-
-function convert$9(test) {
- if (typeof test === 'string') {
- return typeFactory$6(test)
- }
-
- if (test === null || test === undefined) {
- return ok$7
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$6 : matchesFactory$6)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$6(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$9(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$6(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$6(tests) {
- var checks = convertAll$6(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$6(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$7() {
- return true
-}
-
-var unistUtilVisitParents$6 = visitParents$6;
-
-
-
-var CONTINUE$c = true;
-var SKIP$c = 'skip';
-var EXIT$c = false;
-
-visitParents$6.CONTINUE = CONTINUE$c;
-visitParents$6.SKIP = SKIP$c;
-visitParents$6.EXIT = EXIT$c;
-
-function visitParents$6(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$6(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$6(visitor(node, parents));
-
- if (result[0] === EXIT$c) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$c) {
- subresult = toResult$6(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$c ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$c) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$6(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$c, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$6 = visit$6;
-
-
-
-var CONTINUE$d = unistUtilVisitParents$6.CONTINUE;
-var SKIP$d = unistUtilVisitParents$6.SKIP;
-var EXIT$d = unistUtilVisitParents$6.EXIT;
-
-visit$6.CONTINUE = CONTINUE$d;
-visit$6.SKIP = SKIP$d;
-visit$6.EXIT = EXIT$d;
-
-function visit$6(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$6(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoBlockquoteWithoutMarker = unifiedLintRule(
'remark-lint:no-blockquote-without-marker',
noBlockquoteWithoutMarker
@@ -46872,10 +45458,10 @@ var reason$1 = 'Missing marker in block quote';
function noBlockquoteWithoutMarker(tree, file) {
var contents = String(file);
- var location = vfileLocation$3(file);
+ var location = vfileLocation(file);
var last = contents.length;
- unistUtilVisit$6(tree, 'blockquote', visitor);
+ unistUtilVisit(tree, 'blockquote', visitor);
function visitor(node) {
var indent = node.position && node.position.indent;
@@ -46917,197 +45503,6 @@ function noBlockquoteWithoutMarker(tree, file) {
}
}
-var convert_1$7 = convert$a;
-
-function convert$a(test) {
- if (typeof test === 'string') {
- return typeFactory$7(test)
- }
-
- if (test === null || test === undefined) {
- return ok$8
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$7 : matchesFactory$7)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$7(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$a(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$7(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$7(tests) {
- var checks = convertAll$7(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$7(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$8() {
- return true
-}
-
-var unistUtilVisitParents$7 = visitParents$7;
-
-
-
-var CONTINUE$e = true;
-var SKIP$e = 'skip';
-var EXIT$e = false;
-
-visitParents$7.CONTINUE = CONTINUE$e;
-visitParents$7.SKIP = SKIP$e;
-visitParents$7.EXIT = EXIT$e;
-
-function visitParents$7(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$7(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$7(visitor(node, parents));
-
- if (result[0] === EXIT$e) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$e) {
- subresult = toResult$7(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$e ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$e) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$7(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$e, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$7 = visit$7;
-
-
-
-var CONTINUE$f = unistUtilVisitParents$7.CONTINUE;
-var SKIP$f = unistUtilVisitParents$7.SKIP;
-var EXIT$f = unistUtilVisitParents$7.EXIT;
-
-visit$7.CONTINUE = CONTINUE$f;
-visit$7.SKIP = SKIP$f;
-visit$7.EXIT = EXIT$f;
-
-function visit$7(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$7(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoLiteralUrls = unifiedLintRule('remark-lint:no-literal-urls', noLiteralURLs);
var start$5 = unistUtilPosition.start;
@@ -47116,7 +45511,7 @@ var mailto$2 = 'mailto:';
var reason$2 = 'Don’t use literal URLs without angle brackets';
function noLiteralURLs(tree, file) {
- unistUtilVisit$7(tree, 'link', visitor);
+ unistUtilVisit(tree, 'link', visitor);
function visitor(node) {
var children = node.children;
@@ -47133,197 +45528,6 @@ function noLiteralURLs(tree, file) {
}
}
-var convert_1$8 = convert$b;
-
-function convert$b(test) {
- if (typeof test === 'string') {
- return typeFactory$8(test)
- }
-
- if (test === null || test === undefined) {
- return ok$9
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$8 : matchesFactory$8)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$8(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$b(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$8(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$8(tests) {
- var checks = convertAll$8(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$8(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$9() {
- return true
-}
-
-var unistUtilVisitParents$8 = visitParents$8;
-
-
-
-var CONTINUE$g = true;
-var SKIP$g = 'skip';
-var EXIT$g = false;
-
-visitParents$8.CONTINUE = CONTINUE$g;
-visitParents$8.SKIP = SKIP$g;
-visitParents$8.EXIT = EXIT$g;
-
-function visitParents$8(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$8(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$8(visitor(node, parents));
-
- if (result[0] === EXIT$g) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$g) {
- subresult = toResult$8(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$g ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$g) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$8(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$g, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$8 = visit$8;
-
-
-
-var CONTINUE$h = unistUtilVisitParents$8.CONTINUE;
-var SKIP$h = unistUtilVisitParents$8.SKIP;
-var EXIT$h = unistUtilVisitParents$8.EXIT;
-
-visit$8.CONTINUE = CONTINUE$h;
-visit$8.SKIP = SKIP$h;
-visit$8.EXIT = EXIT$h;
-
-function visit$8(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$8(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintOrderedListMarkerStyle = unifiedLintRule(
'remark-lint:ordered-list-marker-style',
orderedListMarkerStyle
@@ -47350,7 +45554,7 @@ function orderedListMarkerStyle(tree, file, option) {
);
}
- unistUtilVisit$8(tree, 'list', visitor);
+ unistUtilVisit(tree, 'list', visitor);
function visitor(node) {
var children = node.children;
@@ -47380,197 +45584,6 @@ function orderedListMarkerStyle(tree, file, option) {
}
}
-var convert_1$9 = convert$c;
-
-function convert$c(test) {
- if (typeof test === 'string') {
- return typeFactory$9(test)
- }
-
- if (test === null || test === undefined) {
- return ok$a
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$9 : matchesFactory$9)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$9(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$c(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$9(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$9(tests) {
- var checks = convertAll$9(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$9(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$a() {
- return true
-}
-
-var unistUtilVisitParents$9 = visitParents$9;
-
-
-
-var CONTINUE$i = true;
-var SKIP$i = 'skip';
-var EXIT$i = false;
-
-visitParents$9.CONTINUE = CONTINUE$i;
-visitParents$9.SKIP = SKIP$i;
-visitParents$9.EXIT = EXIT$i;
-
-function visitParents$9(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$9(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$9(visitor(node, parents));
-
- if (result[0] === EXIT$i) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$i) {
- subresult = toResult$9(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$i ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$i) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$9(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$i, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$9 = visit$9;
-
-
-
-var CONTINUE$j = unistUtilVisitParents$9.CONTINUE;
-var SKIP$j = unistUtilVisitParents$9.SKIP;
-var EXIT$j = unistUtilVisitParents$9.EXIT;
-
-visit$9.CONTINUE = CONTINUE$j;
-visit$9.SKIP = SKIP$j;
-visit$9.EXIT = EXIT$j;
-
-function visit$9(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$9(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintHardBreakSpaces = unifiedLintRule('remark-lint:hard-break-spaces', hardBreakSpaces);
var reason$3 = 'Use two spaces for hard line breaks';
@@ -47578,7 +45591,7 @@ var reason$3 = 'Use two spaces for hard line breaks';
function hardBreakSpaces(tree, file) {
var contents = String(file);
- unistUtilVisit$9(tree, 'break', visitor);
+ unistUtilVisit(tree, 'break', visitor);
function visitor(node) {
var value;
@@ -47596,197 +45609,6 @@ function hardBreakSpaces(tree, file) {
}
}
-var convert_1$a = convert$d;
-
-function convert$d(test) {
- if (typeof test === 'string') {
- return typeFactory$a(test)
- }
-
- if (test === null || test === undefined) {
- return ok$b
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$a : matchesFactory$a)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$a(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$d(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$a(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$a(tests) {
- var checks = convertAll$a(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$a(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$b() {
- return true
-}
-
-var unistUtilVisitParents$a = visitParents$a;
-
-
-
-var CONTINUE$k = true;
-var SKIP$k = 'skip';
-var EXIT$k = false;
-
-visitParents$a.CONTINUE = CONTINUE$k;
-visitParents$a.SKIP = SKIP$k;
-visitParents$a.EXIT = EXIT$k;
-
-function visitParents$a(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$a(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$a(visitor(node, parents));
-
- if (result[0] === EXIT$k) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$k) {
- subresult = toResult$a(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$k ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$k) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$a(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$k, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$a = visit$a;
-
-
-
-var CONTINUE$l = unistUtilVisitParents$a.CONTINUE;
-var SKIP$l = unistUtilVisitParents$a.SKIP;
-var EXIT$l = unistUtilVisitParents$a.EXIT;
-
-visit$a.CONTINUE = CONTINUE$l;
-visit$a.SKIP = SKIP$l;
-visit$a.EXIT = EXIT$l;
-
-function visit$a(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$a(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoDuplicateDefinitions = unifiedLintRule(
'remark-lint:no-duplicate-definitions',
noDuplicateDefinitions
@@ -47797,7 +45619,7 @@ var reason$4 = 'Do not use definitions with the same identifier';
function noDuplicateDefinitions(tree, file) {
var map = {};
- unistUtilVisit$a(tree, ['definition', 'footnoteDefinition'], check);
+ unistUtilVisit(tree, ['definition', 'footnoteDefinition'], check);
function check(node) {
var identifier;
@@ -47819,197 +45641,6 @@ function noDuplicateDefinitions(tree, file) {
}
}
-var convert_1$b = convert$e;
-
-function convert$e(test) {
- if (typeof test === 'string') {
- return typeFactory$b(test)
- }
-
- if (test === null || test === undefined) {
- return ok$c
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$b : matchesFactory$b)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$b(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$e(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$b(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$b(tests) {
- var checks = convertAll$b(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$b(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$c() {
- return true
-}
-
-var unistUtilVisitParents$b = visitParents$b;
-
-
-
-var CONTINUE$m = true;
-var SKIP$m = 'skip';
-var EXIT$m = false;
-
-visitParents$b.CONTINUE = CONTINUE$m;
-visitParents$b.SKIP = SKIP$m;
-visitParents$b.EXIT = EXIT$m;
-
-function visitParents$b(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$b(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$b(visitor(node, parents));
-
- if (result[0] === EXIT$m) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$m) {
- subresult = toResult$b(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$m ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$m) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$b(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$m, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$b = visit$b;
-
-
-
-var CONTINUE$n = unistUtilVisitParents$b.CONTINUE;
-var SKIP$n = unistUtilVisitParents$b.SKIP;
-var EXIT$n = unistUtilVisitParents$b.EXIT;
-
-visit$b.CONTINUE = CONTINUE$n;
-visit$b.SKIP = SKIP$n;
-visit$b.EXIT = EXIT$n;
-
-function visit$b(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$b(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var mdastUtilHeadingStyle = style;
function style(node, relative) {
@@ -48064,7 +45695,7 @@ var end$3 = unistUtilPosition.end;
function noHeadingContentIndent(tree, file) {
var contents = String(file);
- unistUtilVisit$b(tree, 'heading', visitor);
+ unistUtilVisit(tree, 'heading', visitor);
function visitor(node) {
var depth;
@@ -48146,201 +45777,10 @@ function noHeadingContentIndent(tree, file) {
}
}
-var convert_1$c = convert$f;
-
-function convert$f(test) {
- if (typeof test === 'string') {
- return typeFactory$c(test)
- }
-
- if (test === null || test === undefined) {
- return ok$d
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$c : matchesFactory$c)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$c(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$f(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$c(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$c(tests) {
- var checks = convertAll$c(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$c(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$d() {
- return true
-}
-
-var unistUtilVisitParents$c = visitParents$c;
-
-
-
-var CONTINUE$o = true;
-var SKIP$o = 'skip';
-var EXIT$o = false;
-
-visitParents$c.CONTINUE = CONTINUE$o;
-visitParents$c.SKIP = SKIP$o;
-visitParents$c.EXIT = EXIT$o;
-
-function visitParents$c(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$c(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$c(visitor(node, parents));
-
- if (result[0] === EXIT$o) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$o) {
- subresult = toResult$c(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$o ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$o) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$c(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$o, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$c = visit$c;
-
-
-
-var CONTINUE$p = unistUtilVisitParents$c.CONTINUE;
-var SKIP$p = unistUtilVisitParents$c.SKIP;
-var EXIT$p = unistUtilVisitParents$c.EXIT;
-
-visit$c.CONTINUE = CONTINUE$p;
-visit$c.SKIP = SKIP$p;
-visit$c.EXIT = EXIT$p;
-
-function visit$c(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$c(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoInlinePadding = unifiedLintRule('remark-lint:no-inline-padding', noInlinePadding);
function noInlinePadding(tree, file) {
- unistUtilVisit$c(tree, ['emphasis', 'strong', 'delete', 'image', 'link'], visitor);
+ unistUtilVisit(tree, ['emphasis', 'strong', 'delete', 'image', 'link'], visitor);
function visitor(node) {
var contents;
@@ -48358,197 +45798,6 @@ function noInlinePadding(tree, file) {
}
}
-var convert_1$d = convert$g;
-
-function convert$g(test) {
- if (typeof test === 'string') {
- return typeFactory$d(test)
- }
-
- if (test === null || test === undefined) {
- return ok$e
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$d : matchesFactory$d)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$d(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$g(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$d(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$d(tests) {
- var checks = convertAll$d(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$d(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$e() {
- return true
-}
-
-var unistUtilVisitParents$d = visitParents$d;
-
-
-
-var CONTINUE$q = true;
-var SKIP$q = 'skip';
-var EXIT$q = false;
-
-visitParents$d.CONTINUE = CONTINUE$q;
-visitParents$d.SKIP = SKIP$q;
-visitParents$d.EXIT = EXIT$q;
-
-function visitParents$d(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$d(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$d(visitor(node, parents));
-
- if (result[0] === EXIT$q) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$q) {
- subresult = toResult$d(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$q ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$q) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$d(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$q, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$d = visit$d;
-
-
-
-var CONTINUE$r = unistUtilVisitParents$d.CONTINUE;
-var SKIP$r = unistUtilVisitParents$d.SKIP;
-var EXIT$r = unistUtilVisitParents$d.EXIT;
-
-visit$d.CONTINUE = CONTINUE$r;
-visit$d.SKIP = SKIP$r;
-visit$d.EXIT = EXIT$r;
-
-function visit$d(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$d(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoShortcutReferenceImage = unifiedLintRule(
'remark-lint:no-shortcut-reference-image',
noShortcutReferenceImage
@@ -48557,7 +45806,7 @@ var remarkLintNoShortcutReferenceImage = unifiedLintRule(
var reason$5 = 'Use the trailing [] on reference images';
function noShortcutReferenceImage(tree, file) {
- unistUtilVisit$d(tree, 'imageReference', visitor);
+ unistUtilVisit(tree, 'imageReference', visitor);
function visitor(node) {
if (!unistUtilGenerated(node) && node.referenceType === 'shortcut') {
@@ -48566,197 +45815,6 @@ function noShortcutReferenceImage(tree, file) {
}
}
-var convert_1$e = convert$h;
-
-function convert$h(test) {
- if (typeof test === 'string') {
- return typeFactory$e(test)
- }
-
- if (test === null || test === undefined) {
- return ok$f
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$e : matchesFactory$e)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$e(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$h(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$e(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$e(tests) {
- var checks = convertAll$e(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$e(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$f() {
- return true
-}
-
-var unistUtilVisitParents$e = visitParents$e;
-
-
-
-var CONTINUE$s = true;
-var SKIP$s = 'skip';
-var EXIT$s = false;
-
-visitParents$e.CONTINUE = CONTINUE$s;
-visitParents$e.SKIP = SKIP$s;
-visitParents$e.EXIT = EXIT$s;
-
-function visitParents$e(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$e(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$e(visitor(node, parents));
-
- if (result[0] === EXIT$s) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$s) {
- subresult = toResult$e(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$s ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$s) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$e(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$s, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$e = visit$e;
-
-
-
-var CONTINUE$t = unistUtilVisitParents$e.CONTINUE;
-var SKIP$t = unistUtilVisitParents$e.SKIP;
-var EXIT$t = unistUtilVisitParents$e.EXIT;
-
-visit$e.CONTINUE = CONTINUE$t;
-visit$e.SKIP = SKIP$t;
-visit$e.EXIT = EXIT$t;
-
-function visit$e(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$e(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoShortcutReferenceLink = unifiedLintRule(
'remark-lint:no-shortcut-reference-link',
noShortcutReferenceLink
@@ -48765,7 +45823,7 @@ var remarkLintNoShortcutReferenceLink = unifiedLintRule(
var reason$6 = 'Use the trailing `[]` on reference links';
function noShortcutReferenceLink(tree, file) {
- unistUtilVisit$e(tree, 'linkReference', visitor);
+ unistUtilVisit(tree, 'linkReference', visitor);
function visitor(node) {
if (!unistUtilGenerated(node) && node.referenceType === 'shortcut') {
@@ -48774,197 +45832,6 @@ function noShortcutReferenceLink(tree, file) {
}
}
-var convert_1$f = convert$i;
-
-function convert$i(test) {
- if (typeof test === 'string') {
- return typeFactory$f(test)
- }
-
- if (test === null || test === undefined) {
- return ok$g
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$f : matchesFactory$f)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$f(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$i(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$f(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$f(tests) {
- var checks = convertAll$f(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$f(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$g() {
- return true
-}
-
-var unistUtilVisitParents$f = visitParents$f;
-
-
-
-var CONTINUE$u = true;
-var SKIP$u = 'skip';
-var EXIT$u = false;
-
-visitParents$f.CONTINUE = CONTINUE$u;
-visitParents$f.SKIP = SKIP$u;
-visitParents$f.EXIT = EXIT$u;
-
-function visitParents$f(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$f(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$f(visitor(node, parents));
-
- if (result[0] === EXIT$u) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$u) {
- subresult = toResult$f(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$u ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$u) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$f(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$u, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$f = visit$f;
-
-
-
-var CONTINUE$v = unistUtilVisitParents$f.CONTINUE;
-var SKIP$v = unistUtilVisitParents$f.SKIP;
-var EXIT$v = unistUtilVisitParents$f.EXIT;
-
-visit$f.CONTINUE = CONTINUE$v;
-visit$f.SKIP = SKIP$v;
-visit$f.EXIT = EXIT$v;
-
-function visit$f(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$f(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoUndefinedReferences = unifiedLintRule(
'remark-lint:no-undefined-references',
noUndefinedReferences
@@ -48984,8 +45851,8 @@ function noUndefinedReferences(tree, file, option) {
var allow = ((option || {}).allow || []).map(normalize$3);
var map = {};
- unistUtilVisit$f(tree, ['definition', 'footnoteDefinition'], mark);
- unistUtilVisit$f(tree, ['imageReference', 'linkReference', 'footnoteReference'], find);
+ unistUtilVisit(tree, ['definition', 'footnoteDefinition'], mark);
+ unistUtilVisit(tree, ['imageReference', 'linkReference', 'footnoteReference'], find);
function mark(node) {
if (!unistUtilGenerated(node)) {
@@ -49004,197 +45871,6 @@ function noUndefinedReferences(tree, file, option) {
}
}
-var convert_1$g = convert$j;
-
-function convert$j(test) {
- if (typeof test === 'string') {
- return typeFactory$g(test)
- }
-
- if (test === null || test === undefined) {
- return ok$h
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$g : matchesFactory$g)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$g(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$j(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$g(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$g(tests) {
- var checks = convertAll$g(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$g(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$h() {
- return true
-}
-
-var unistUtilVisitParents$g = visitParents$g;
-
-
-
-var CONTINUE$w = true;
-var SKIP$w = 'skip';
-var EXIT$w = false;
-
-visitParents$g.CONTINUE = CONTINUE$w;
-visitParents$g.SKIP = SKIP$w;
-visitParents$g.EXIT = EXIT$w;
-
-function visitParents$g(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$g(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$g(visitor(node, parents));
-
- if (result[0] === EXIT$w) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$w) {
- subresult = toResult$g(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$w ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$w) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$g(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$w, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$g = visit$g;
-
-
-
-var CONTINUE$x = unistUtilVisitParents$g.CONTINUE;
-var SKIP$x = unistUtilVisitParents$g.SKIP;
-var EXIT$x = unistUtilVisitParents$g.EXIT;
-
-visit$g.CONTINUE = CONTINUE$x;
-visit$g.SKIP = SKIP$x;
-visit$g.EXIT = EXIT$x;
-
-function visit$g(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$g(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoUnusedDefinitions = unifiedLintRule('remark-lint:no-unused-definitions', noUnusedDefinitions);
var reason$8 = 'Found unused definition';
@@ -49204,8 +45880,8 @@ function noUnusedDefinitions(tree, file) {
var identifier;
var entry;
- unistUtilVisit$g(tree, ['definition', 'footnoteDefinition'], find);
- unistUtilVisit$g(tree, ['imageReference', 'linkReference', 'footnoteReference'], mark);
+ unistUtilVisit(tree, ['definition', 'footnoteDefinition'], find);
+ unistUtilVisit(tree, ['imageReference', 'linkReference', 'footnoteReference'], mark);
for (identifier in map) {
entry = map[identifier];
@@ -49231,7 +45907,7 @@ function noUnusedDefinitions(tree, file) {
}
var plugins$1 = [
- remarkLint$1,
+ remarkLint,
// Unix compatibility.
remarkLintFinalNewline,
// Rendering across vendors differs greatly if using other styles.
@@ -49257,197 +45933,6 @@ var remarkPresetLintRecommended = {
plugins: plugins$1
};
-var convert_1$h = convert$k;
-
-function convert$k(test) {
- if (typeof test === 'string') {
- return typeFactory$h(test)
- }
-
- if (test === null || test === undefined) {
- return ok$i
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$h : matchesFactory$h)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$h(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$k(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$h(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$h(tests) {
- var checks = convertAll$h(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$h(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$i() {
- return true
-}
-
-var unistUtilVisitParents$h = visitParents$h;
-
-
-
-var CONTINUE$y = true;
-var SKIP$y = 'skip';
-var EXIT$y = false;
-
-visitParents$h.CONTINUE = CONTINUE$y;
-visitParents$h.SKIP = SKIP$y;
-visitParents$h.EXIT = EXIT$y;
-
-function visitParents$h(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$h(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$h(visitor(node, parents));
-
- if (result[0] === EXIT$y) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$y) {
- subresult = toResult$h(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$y ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$y) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$h(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$y, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$h = visit$h;
-
-
-
-var CONTINUE$z = unistUtilVisitParents$h.CONTINUE;
-var SKIP$z = unistUtilVisitParents$h.SKIP;
-var EXIT$z = unistUtilVisitParents$h.EXIT;
-
-visit$h.CONTINUE = CONTINUE$z;
-visit$h.SKIP = SKIP$z;
-visit$h.EXIT = EXIT$z;
-
-function visit$h(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$h(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintBlockquoteIndentation = unifiedLintRule(
'remark-lint:blockquote-indentation',
blockquoteIndentation
@@ -49456,7 +45941,7 @@ var remarkLintBlockquoteIndentation = unifiedLintRule(
function blockquoteIndentation(tree, file, option) {
var preferred = typeof option === 'number' && !isNaN(option) ? option : null;
- unistUtilVisit$h(tree, 'blockquote', visitor);
+ unistUtilVisit(tree, 'blockquote', visitor);
function visitor(node) {
var abs;
@@ -49500,270 +45985,6 @@ function check$3(node) {
return indentation
}
-var vfileLocation$4 = factory$c;
-
-function factory$c(file) {
- var contents = indices$4(String(file));
-
- return {
- toPosition: offsetToPositionFactory$4(contents),
- toOffset: positionToOffsetFactory$4(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$4(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$4(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$4(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
-var convert_1$i = convert$l;
-
-function convert$l(test) {
- if (typeof test === 'string') {
- return typeFactory$i(test)
- }
-
- if (test === null || test === undefined) {
- return ok$j
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$i : matchesFactory$i)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$i(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$l(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$i(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$i(tests) {
- var checks = convertAll$i(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$i(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$j() {
- return true
-}
-
-var unistUtilVisitParents$i = visitParents$i;
-
-
-
-var CONTINUE$A = true;
-var SKIP$A = 'skip';
-var EXIT$A = false;
-
-visitParents$i.CONTINUE = CONTINUE$A;
-visitParents$i.SKIP = SKIP$A;
-visitParents$i.EXIT = EXIT$A;
-
-function visitParents$i(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$i(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$i(visitor(node, parents));
-
- if (result[0] === EXIT$A) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$A) {
- subresult = toResult$i(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$A ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$A) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$i(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$A, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$i = visit$i;
-
-
-
-var CONTINUE$B = unistUtilVisitParents$i.CONTINUE;
-var SKIP$B = unistUtilVisitParents$i.SKIP;
-var EXIT$B = unistUtilVisitParents$i.EXIT;
-
-visit$i.CONTINUE = CONTINUE$B;
-visit$i.SKIP = SKIP$B;
-visit$i.EXIT = EXIT$B;
-
-function visit$i(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$i(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintCheckboxCharacterStyle = unifiedLintRule(
'remark-lint:checkbox-character-style',
checkboxCharacterStyle
@@ -49778,7 +45999,7 @@ var types$1 = {true: 'checked', false: 'unchecked'};
function checkboxCharacterStyle(tree, file, option) {
var contents = String(file);
- var location = vfileLocation$4(file);
+ var location = vfileLocation(file);
var preferred = typeof option === 'object' ? option : {};
if (preferred.unchecked && unchecked[preferred.unchecked] !== true) {
@@ -49797,7 +46018,7 @@ function checkboxCharacterStyle(tree, file, option) {
);
}
- unistUtilVisit$i(tree, 'listItem', visitor);
+ unistUtilVisit(tree, 'listItem', visitor);
function visitor(node) {
var type;
@@ -49845,270 +46066,6 @@ function checkboxCharacterStyle(tree, file, option) {
}
}
-var vfileLocation$5 = factory$d;
-
-function factory$d(file) {
- var contents = indices$5(String(file));
-
- return {
- toPosition: offsetToPositionFactory$5(contents),
- toOffset: positionToOffsetFactory$5(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$5(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$5(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$5(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
-var convert_1$j = convert$m;
-
-function convert$m(test) {
- if (typeof test === 'string') {
- return typeFactory$j(test)
- }
-
- if (test === null || test === undefined) {
- return ok$k
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$j : matchesFactory$j)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$j(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$m(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$j(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$j(tests) {
- var checks = convertAll$j(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$j(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$k() {
- return true
-}
-
-var unistUtilVisitParents$j = visitParents$j;
-
-
-
-var CONTINUE$C = true;
-var SKIP$C = 'skip';
-var EXIT$C = false;
-
-visitParents$j.CONTINUE = CONTINUE$C;
-visitParents$j.SKIP = SKIP$C;
-visitParents$j.EXIT = EXIT$C;
-
-function visitParents$j(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$j(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$j(visitor(node, parents));
-
- if (result[0] === EXIT$C) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$C) {
- subresult = toResult$j(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$C ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$C) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$j(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$C, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$j = visit$j;
-
-
-
-var CONTINUE$D = unistUtilVisitParents$j.CONTINUE;
-var SKIP$D = unistUtilVisitParents$j.SKIP;
-var EXIT$D = unistUtilVisitParents$j.EXIT;
-
-visit$j.CONTINUE = CONTINUE$D;
-visit$j.SKIP = SKIP$D;
-visit$j.EXIT = EXIT$D;
-
-function visit$j(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$j(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintCheckboxContentIndent = unifiedLintRule(
'remark-lint:checkbox-content-indent',
checkboxContentIndent
@@ -50121,9 +46078,9 @@ var reason$9 = 'Checkboxes should be followed by a single character';
function checkboxContentIndent(tree, file) {
var contents = String(file);
- var location = vfileLocation$5(file);
+ var location = vfileLocation(file);
- unistUtilVisit$j(tree, 'listItem', visitor);
+ unistUtilVisit(tree, 'listItem', visitor);
function visitor(node) {
var initial;
@@ -50157,197 +46114,6 @@ function checkboxContentIndent(tree, file) {
}
}
-var convert_1$k = convert$n;
-
-function convert$n(test) {
- if (typeof test === 'string') {
- return typeFactory$k(test)
- }
-
- if (test === null || test === undefined) {
- return ok$l
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$k : matchesFactory$k)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$k(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$n(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$k(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$k(tests) {
- var checks = convertAll$k(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$k(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$l() {
- return true
-}
-
-var unistUtilVisitParents$k = visitParents$k;
-
-
-
-var CONTINUE$E = true;
-var SKIP$E = 'skip';
-var EXIT$E = false;
-
-visitParents$k.CONTINUE = CONTINUE$E;
-visitParents$k.SKIP = SKIP$E;
-visitParents$k.EXIT = EXIT$E;
-
-function visitParents$k(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$k(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$k(visitor(node, parents));
-
- if (result[0] === EXIT$E) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$E) {
- subresult = toResult$k(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$E ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$E) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$k(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$E, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$k = visit$k;
-
-
-
-var CONTINUE$F = unistUtilVisitParents$k.CONTINUE;
-var SKIP$F = unistUtilVisitParents$k.SKIP;
-var EXIT$F = unistUtilVisitParents$k.EXIT;
-
-visit$k.CONTINUE = CONTINUE$F;
-visit$k.SKIP = SKIP$F;
-visit$k.EXIT = EXIT$F;
-
-function visit$k(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$k(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintCodeBlockStyle = unifiedLintRule('remark-lint:code-block-style', codeBlockStyle);
var start$a = unistUtilPosition.start;
@@ -50368,7 +46134,7 @@ function codeBlockStyle(tree, file, option) {
);
}
- unistUtilVisit$k(tree, 'code', visitor);
+ unistUtilVisit(tree, 'code', visitor);
function visitor(node) {
var initial;
@@ -50397,197 +46163,6 @@ function codeBlockStyle(tree, file, option) {
}
}
-var convert_1$l = convert$o;
-
-function convert$o(test) {
- if (typeof test === 'string') {
- return typeFactory$l(test)
- }
-
- if (test === null || test === undefined) {
- return ok$m
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$l : matchesFactory$l)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$l(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$o(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$l(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$l(tests) {
- var checks = convertAll$l(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$l(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$m() {
- return true
-}
-
-var unistUtilVisitParents$l = visitParents$l;
-
-
-
-var CONTINUE$G = true;
-var SKIP$G = 'skip';
-var EXIT$G = false;
-
-visitParents$l.CONTINUE = CONTINUE$G;
-visitParents$l.SKIP = SKIP$G;
-visitParents$l.EXIT = EXIT$G;
-
-function visitParents$l(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$l(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$l(visitor(node, parents));
-
- if (result[0] === EXIT$G) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$G) {
- subresult = toResult$l(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$G ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$G) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$l(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$G, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$l = visit$l;
-
-
-
-var CONTINUE$H = unistUtilVisitParents$l.CONTINUE;
-var SKIP$H = unistUtilVisitParents$l.SKIP;
-var EXIT$H = unistUtilVisitParents$l.EXIT;
-
-visit$l.CONTINUE = CONTINUE$H;
-visit$l.SKIP = SKIP$H;
-visit$l.EXIT = EXIT$H;
-
-function visit$l(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$l(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintDefinitionSpacing = unifiedLintRule('remark-lint:definition-spacing', definitionSpacing);
var label$1 = /^\s*\[((?:\\[\s\S]|[^[\]])+)]/;
@@ -50596,7 +46171,7 @@ var reason$a = 'Do not use consecutive whitespace in definition labels';
function definitionSpacing(tree, file) {
var contents = String(file);
- unistUtilVisit$l(tree, ['definition', 'footnoteDefinition'], check);
+ unistUtilVisit(tree, ['definition', 'footnoteDefinition'], check);
function check(node) {
var start = unistUtilPosition.start(node).offset;
@@ -50611,197 +46186,6 @@ function definitionSpacing(tree, file) {
}
}
-var convert_1$m = convert$p;
-
-function convert$p(test) {
- if (typeof test === 'string') {
- return typeFactory$m(test)
- }
-
- if (test === null || test === undefined) {
- return ok$n
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$m : matchesFactory$m)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$m(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$p(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$m(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$m(tests) {
- var checks = convertAll$m(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$m(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$n() {
- return true
-}
-
-var unistUtilVisitParents$m = visitParents$m;
-
-
-
-var CONTINUE$I = true;
-var SKIP$I = 'skip';
-var EXIT$I = false;
-
-visitParents$m.CONTINUE = CONTINUE$I;
-visitParents$m.SKIP = SKIP$I;
-visitParents$m.EXIT = EXIT$I;
-
-function visitParents$m(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$m(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$m(visitor(node, parents));
-
- if (result[0] === EXIT$I) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$I) {
- subresult = toResult$m(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$I ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$I) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$m(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$I, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$m = visit$m;
-
-
-
-var CONTINUE$J = unistUtilVisitParents$m.CONTINUE;
-var SKIP$J = unistUtilVisitParents$m.SKIP;
-var EXIT$J = unistUtilVisitParents$m.EXIT;
-
-visit$m.CONTINUE = CONTINUE$J;
-visit$m.SKIP = SKIP$J;
-visit$m.EXIT = EXIT$J;
-
-function visit$m(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$m(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintFencedCodeFlag = unifiedLintRule('remark-lint:fenced-code-flag', fencedCodeFlag);
var start$b = unistUtilPosition.start;
@@ -50826,7 +46210,7 @@ function fencedCodeFlag(tree, file, option) {
allowed = String(flags).split(',');
}
- unistUtilVisit$m(tree, 'code', visitor);
+ unistUtilVisit(tree, 'code', visitor);
function visitor(node) {
var value;
@@ -50847,197 +46231,6 @@ function fencedCodeFlag(tree, file, option) {
}
}
-var convert_1$n = convert$q;
-
-function convert$q(test) {
- if (typeof test === 'string') {
- return typeFactory$n(test)
- }
-
- if (test === null || test === undefined) {
- return ok$o
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$n : matchesFactory$n)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$n(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$q(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$n(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$n(tests) {
- var checks = convertAll$n(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$n(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$o() {
- return true
-}
-
-var unistUtilVisitParents$n = visitParents$n;
-
-
-
-var CONTINUE$K = true;
-var SKIP$K = 'skip';
-var EXIT$K = false;
-
-visitParents$n.CONTINUE = CONTINUE$K;
-visitParents$n.SKIP = SKIP$K;
-visitParents$n.EXIT = EXIT$K;
-
-function visitParents$n(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$n(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$n(visitor(node, parents));
-
- if (result[0] === EXIT$K) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$K) {
- subresult = toResult$n(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$K ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$K) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$n(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$K, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$n = visit$n;
-
-
-
-var CONTINUE$L = unistUtilVisitParents$n.CONTINUE;
-var SKIP$L = unistUtilVisitParents$n.SKIP;
-var EXIT$L = unistUtilVisitParents$n.EXIT;
-
-visit$n.CONTINUE = CONTINUE$L;
-visit$n.SKIP = SKIP$L;
-visit$n.EXIT = EXIT$L;
-
-function visit$n(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$n(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintFencedCodeMarker = unifiedLintRule('remark-lint:fenced-code-marker', fencedCodeMarker);
var markers = {
@@ -51059,7 +46252,7 @@ function fencedCodeMarker(tree, file, option) {
);
}
- unistUtilVisit$n(tree, 'code', visitor);
+ unistUtilVisit(tree, 'code', visitor);
function visitor(node) {
var start;
@@ -51102,197 +46295,6 @@ function fileExtension(tree, file, option) {
}
}
-var convert_1$o = convert$r;
-
-function convert$r(test) {
- if (typeof test === 'string') {
- return typeFactory$o(test)
- }
-
- if (test === null || test === undefined) {
- return ok$p
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$o : matchesFactory$o)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$o(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$r(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$o(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$o(tests) {
- var checks = convertAll$o(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$o(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$p() {
- return true
-}
-
-var unistUtilVisitParents$o = visitParents$o;
-
-
-
-var CONTINUE$M = true;
-var SKIP$M = 'skip';
-var EXIT$M = false;
-
-visitParents$o.CONTINUE = CONTINUE$M;
-visitParents$o.SKIP = SKIP$M;
-visitParents$o.EXIT = EXIT$M;
-
-function visitParents$o(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$o(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$o(visitor(node, parents));
-
- if (result[0] === EXIT$M) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$M) {
- subresult = toResult$o(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$M ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$M) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$o(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$M, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$o = visit$o;
-
-
-
-var CONTINUE$N = unistUtilVisitParents$o.CONTINUE;
-var SKIP$N = unistUtilVisitParents$o.SKIP;
-var EXIT$N = unistUtilVisitParents$o.EXIT;
-
-visit$o.CONTINUE = CONTINUE$N;
-visit$o.SKIP = SKIP$N;
-visit$o.EXIT = EXIT$N;
-
-function visit$o(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$o(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintFinalDefinition = unifiedLintRule('remark-lint:final-definition', finalDefinition);
var start$c = unistUtilPosition.start;
@@ -51300,7 +46302,7 @@ var start$c = unistUtilPosition.start;
function finalDefinition(tree, file) {
var last = null;
- unistUtilVisit$o(tree, visitor, true);
+ unistUtilVisit(tree, visitor, true);
function visitor(node) {
var line = start$c(node).line;
@@ -51325,197 +46327,6 @@ function finalDefinition(tree, file) {
}
}
-var convert_1$p = convert$s;
-
-function convert$s(test) {
- if (typeof test === 'string') {
- return typeFactory$p(test)
- }
-
- if (test === null || test === undefined) {
- return ok$q
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$p : matchesFactory$p)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$p(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$s(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$p(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$p(tests) {
- var checks = convertAll$p(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$p(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$q() {
- return true
-}
-
-var unistUtilVisitParents$p = visitParents$p;
-
-
-
-var CONTINUE$O = true;
-var SKIP$O = 'skip';
-var EXIT$O = false;
-
-visitParents$p.CONTINUE = CONTINUE$O;
-visitParents$p.SKIP = SKIP$O;
-visitParents$p.EXIT = EXIT$O;
-
-function visitParents$p(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$p(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$p(visitor(node, parents));
-
- if (result[0] === EXIT$O) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$O) {
- subresult = toResult$p(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$O ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$O) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$p(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$O, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$p = visit$p;
-
-
-
-var CONTINUE$P = unistUtilVisitParents$p.CONTINUE;
-var SKIP$P = unistUtilVisitParents$p.SKIP;
-var EXIT$P = unistUtilVisitParents$p.EXIT;
-
-visit$p.CONTINUE = CONTINUE$P;
-visit$p.SKIP = SKIP$P;
-visit$p.EXIT = EXIT$P;
-
-function visit$p(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$p(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintFirstHeadingLevel = unifiedLintRule('remark-lint:first-heading-level', firstHeadingLevel);
var re$3 = / min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$Q) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$q(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$Q, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$q = visit$q;
-
-
-
-var CONTINUE$R = unistUtilVisitParents$q.CONTINUE;
-var SKIP$R = unistUtilVisitParents$q.SKIP;
-var EXIT$R = unistUtilVisitParents$q.EXIT;
-
-visit$q.CONTINUE = CONTINUE$R;
-visit$q.SKIP = SKIP$R;
-visit$q.EXIT = EXIT$R;
-
-function visit$q(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$q(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintHeadingStyle = unifiedLintRule('remark-lint:heading-style', headingStyle);
var types$2 = ['atx', 'atx-closed', 'setext'];
@@ -51752,7 +46372,7 @@ var types$2 = ['atx', 'atx-closed', 'setext'];
function headingStyle(tree, file, option) {
var preferred = types$2.indexOf(option) === -1 ? null : option;
- unistUtilVisit$q(tree, 'heading', visitor);
+ unistUtilVisit(tree, 'heading', visitor);
function visitor(node) {
if (!unistUtilGenerated(node)) {
@@ -51767,197 +46387,6 @@ function headingStyle(tree, file, option) {
}
}
-var convert_1$r = convert$u;
-
-function convert$u(test) {
- if (typeof test === 'string') {
- return typeFactory$r(test)
- }
-
- if (test === null || test === undefined) {
- return ok$s
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$r : matchesFactory$r)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$r(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$u(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$r(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$r(tests) {
- var checks = convertAll$r(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$r(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$s() {
- return true
-}
-
-var unistUtilVisitParents$r = visitParents$r;
-
-
-
-var CONTINUE$S = true;
-var SKIP$S = 'skip';
-var EXIT$S = false;
-
-visitParents$r.CONTINUE = CONTINUE$S;
-visitParents$r.SKIP = SKIP$S;
-visitParents$r.EXIT = EXIT$S;
-
-function visitParents$r(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$r(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$r(visitor(node, parents));
-
- if (result[0] === EXIT$S) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$S) {
- subresult = toResult$r(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$S ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$S) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$r(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$S, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$r = visit$r;
-
-
-
-var CONTINUE$T = unistUtilVisitParents$r.CONTINUE;
-var SKIP$T = unistUtilVisitParents$r.SKIP;
-var EXIT$T = unistUtilVisitParents$r.EXIT;
-
-visit$r.CONTINUE = CONTINUE$T;
-visit$r.SKIP = SKIP$T;
-visit$r.EXIT = EXIT$T;
-
-function visit$r(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$r(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintMaximumLineLength = unifiedLintRule('remark-lint:maximum-line-length', maximumLineLength);
var start$d = unistUtilPosition.start;
@@ -51972,8 +46401,8 @@ function maximumLineLength(tree, file, option) {
var lineLength;
// Note: JSX is from MDX: .
- unistUtilVisit$r(tree, ['heading', 'table', 'code', 'definition', 'html', 'jsx'], ignore);
- unistUtilVisit$r(tree, ['link', 'image', 'inlineCode'], inline);
+ unistUtilVisit(tree, ['heading', 'table', 'code', 'definition', 'html', 'jsx'], ignore);
+ unistUtilVisit(tree, ['link', 'image', 'inlineCode'], inline);
// Iterate over every line, and warn for violating lines.
while (++index < length) {
@@ -52036,204 +46465,13 @@ function maximumLineLength(tree, file, option) {
}
}
-var convert_1$s = convert$v;
-
-function convert$v(test) {
- if (typeof test === 'string') {
- return typeFactory$s(test)
- }
-
- if (test === null || test === undefined) {
- return ok$t
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$s : matchesFactory$s)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$s(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$v(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$s(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$s(tests) {
- var checks = convertAll$s(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$s(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$t() {
- return true
-}
-
-var unistUtilVisitParents$s = visitParents$s;
-
-
-
-var CONTINUE$U = true;
-var SKIP$U = 'skip';
-var EXIT$U = false;
-
-visitParents$s.CONTINUE = CONTINUE$U;
-visitParents$s.SKIP = SKIP$U;
-visitParents$s.EXIT = EXIT$U;
-
-function visitParents$s(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$s(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$s(visitor(node, parents));
-
- if (result[0] === EXIT$U) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$U) {
- subresult = toResult$s(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$U ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$U) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$s(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$U, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$s = visit$s;
-
-
-
-var CONTINUE$V = unistUtilVisitParents$s.CONTINUE;
-var SKIP$V = unistUtilVisitParents$s.SKIP;
-var EXIT$V = unistUtilVisitParents$s.EXIT;
-
-visit$s.CONTINUE = CONTINUE$V;
-visit$s.SKIP = SKIP$V;
-visit$s.EXIT = EXIT$V;
-
-function visit$s(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$s(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoConsecutiveBlankLines = unifiedLintRule(
'remark-lint:no-consecutive-blank-lines',
noConsecutiveBlankLines
);
function noConsecutiveBlankLines(tree, file) {
- unistUtilVisit$s(tree, visitor);
+ unistUtilVisit(tree, visitor);
function visitor(node) {
var children = node.children;
@@ -52334,197 +46572,6 @@ function noFileNameOuterDashes(tree, file) {
}
}
-var convert_1$t = convert$w;
-
-function convert$w(test) {
- if (typeof test === 'string') {
- return typeFactory$t(test)
- }
-
- if (test === null || test === undefined) {
- return ok$u
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$t : matchesFactory$t)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$t(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$w(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$t(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$t(tests) {
- var checks = convertAll$t(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$t(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$u() {
- return true
-}
-
-var unistUtilVisitParents$t = visitParents$t;
-
-
-
-var CONTINUE$W = true;
-var SKIP$W = 'skip';
-var EXIT$W = false;
-
-visitParents$t.CONTINUE = CONTINUE$W;
-visitParents$t.SKIP = SKIP$W;
-visitParents$t.EXIT = EXIT$W;
-
-function visitParents$t(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$t(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$t(visitor(node, parents));
-
- if (result[0] === EXIT$W) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$W) {
- subresult = toResult$t(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$W ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$W) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$t(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$W, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$t = visit$t;
-
-
-
-var CONTINUE$X = unistUtilVisitParents$t.CONTINUE;
-var SKIP$X = unistUtilVisitParents$t.SKIP;
-var EXIT$X = unistUtilVisitParents$t.EXIT;
-
-visit$t.CONTINUE = CONTINUE$X;
-visit$t.SKIP = SKIP$X;
-visit$t.EXIT = EXIT$X;
-
-function visit$t(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$t(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoHeadingIndent = unifiedLintRule('remark-lint:no-heading-indent', noHeadingIndent);
var start$e = unistUtilPosition.start;
@@ -52533,7 +46580,7 @@ function noHeadingIndent(tree, file) {
var contents = String(file);
var length = contents.length;
- unistUtilVisit$t(tree, 'heading', visitor);
+ unistUtilVisit(tree, 'heading', visitor);
function visitor(node) {
var initial;
@@ -52572,197 +46619,6 @@ function noHeadingIndent(tree, file) {
}
}
-var convert_1$u = convert$x;
-
-function convert$x(test) {
- if (typeof test === 'string') {
- return typeFactory$u(test)
- }
-
- if (test === null || test === undefined) {
- return ok$v
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$u : matchesFactory$u)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$u(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$x(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$u(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$u(tests) {
- var checks = convertAll$u(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$u(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$v() {
- return true
-}
-
-var unistUtilVisitParents$u = visitParents$u;
-
-
-
-var CONTINUE$Y = true;
-var SKIP$Y = 'skip';
-var EXIT$Y = false;
-
-visitParents$u.CONTINUE = CONTINUE$Y;
-visitParents$u.SKIP = SKIP$Y;
-visitParents$u.EXIT = EXIT$Y;
-
-function visitParents$u(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$u(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$u(visitor(node, parents));
-
- if (result[0] === EXIT$Y) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$Y) {
- subresult = toResult$u(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$Y ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$Y) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$u(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$Y, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$u = visit$u;
-
-
-
-var CONTINUE$Z = unistUtilVisitParents$u.CONTINUE;
-var SKIP$Z = unistUtilVisitParents$u.SKIP;
-var EXIT$Z = unistUtilVisitParents$u.EXIT;
-
-visit$u.CONTINUE = CONTINUE$Z;
-visit$u.SKIP = SKIP$Z;
-visit$u.EXIT = EXIT$Z;
-
-function visit$u(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$u(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var start$f = unistUtilPosition.start;
@@ -52776,7 +46632,7 @@ function noMultipleToplevelHeadings(tree, file, option) {
var preferred = option || 1;
var duplicate;
- unistUtilVisit$u(tree, 'heading', visitor);
+ unistUtilVisit(tree, 'heading', visitor);
function visitor(node) {
if (!unistUtilGenerated(node) && node.depth === preferred) {
@@ -52792,197 +46648,6 @@ function noMultipleToplevelHeadings(tree, file, option) {
}
}
-var convert_1$v = convert$y;
-
-function convert$y(test) {
- if (typeof test === 'string') {
- return typeFactory$v(test)
- }
-
- if (test === null || test === undefined) {
- return ok$w
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$v : matchesFactory$v)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$v(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$y(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$v(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$v(tests) {
- var checks = convertAll$v(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$v(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$w() {
- return true
-}
-
-var unistUtilVisitParents$v = visitParents$v;
-
-
-
-var CONTINUE$_ = true;
-var SKIP$_ = 'skip';
-var EXIT$_ = false;
-
-visitParents$v.CONTINUE = CONTINUE$_;
-visitParents$v.SKIP = SKIP$_;
-visitParents$v.EXIT = EXIT$_;
-
-function visitParents$v(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$v(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$v(visitor(node, parents));
-
- if (result[0] === EXIT$_) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$_) {
- subresult = toResult$v(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$_ ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$_) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$v(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$_, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$v = visit$v;
-
-
-
-var CONTINUE$$ = unistUtilVisitParents$v.CONTINUE;
-var SKIP$$ = unistUtilVisitParents$v.SKIP;
-var EXIT$$ = unistUtilVisitParents$v.EXIT;
-
-visit$v.CONTINUE = CONTINUE$$;
-visit$v.SKIP = SKIP$$;
-visit$v.EXIT = EXIT$$;
-
-function visit$v(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$v(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintNoShellDollars = unifiedLintRule('remark-lint:no-shell-dollars', noShellDollars);
var reason$d = 'Do not use dollar signs before shell commands';
@@ -53004,7 +46669,7 @@ var flags = [
];
function noShellDollars(tree, file) {
- unistUtilVisit$v(tree, 'code', visitor);
+ unistUtilVisit(tree, 'code', visitor);
function visitor(node) {
var lines;
@@ -53014,11 +46679,11 @@ function noShellDollars(tree, file) {
// Check both known shell code and unknown code.
if (!unistUtilGenerated(node) && node.lang && flags.indexOf(node.lang) !== -1) {
- lines = node.value.split('\n');
+ lines = node.value.split('\n').filter(notEmpty);
length = lines.length;
index = -1;
- if (length <= 1) {
+ if (length === 0) {
return
}
@@ -53033,196 +46698,9 @@ function noShellDollars(tree, file) {
file.message(reason$d, node);
}
}
-}
-var convert_1$w = convert$z;
-
-function convert$z(test) {
- if (typeof test === 'string') {
- return typeFactory$w(test)
- }
-
- if (test === null || test === undefined) {
- return ok$x
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$w : matchesFactory$w)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$w(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$z(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$w(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$w(tests) {
- var checks = convertAll$w(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$w(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$x() {
- return true
-}
-
-var unistUtilVisitParents$w = visitParents$w;
-
-
-
-var CONTINUE$10 = true;
-var SKIP$10 = 'skip';
-var EXIT$10 = false;
-
-visitParents$w.CONTINUE = CONTINUE$10;
-visitParents$w.SKIP = SKIP$10;
-visitParents$w.EXIT = EXIT$10;
-
-function visitParents$w(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$w(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$w(visitor(node, parents));
-
- if (result[0] === EXIT$10) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$10) {
- subresult = toResult$w(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$10 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$10) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$w(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$10, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$w = visit$w;
-
-
-
-var CONTINUE$11 = unistUtilVisitParents$w.CONTINUE;
-var SKIP$11 = unistUtilVisitParents$w.SKIP;
-var EXIT$11 = unistUtilVisitParents$w.EXIT;
-
-visit$w.CONTINUE = CONTINUE$11;
-visit$w.SKIP = SKIP$11;
-visit$w.EXIT = EXIT$11;
-
-function visit$w(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$w(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
+ function notEmpty(line) {
+ return line.trim().length !== 0
}
}
@@ -53233,14 +46711,14 @@ var reason$e = 'Do not indent table rows';
function noTableIndentation(tree, file) {
var contents = String(file);
- unistUtilVisit$w(tree, 'table', visitor);
+ unistUtilVisit(tree, 'table', visitor);
function visitor(node) {
if (!unistUtilGenerated(node)) {
node.children.forEach(each);
}
- return unistUtilVisit$w.SKIP
+ return unistUtilVisit.SKIP
}
function each(row) {
@@ -53255,86 +46733,13 @@ function noTableIndentation(tree, file) {
}
}
-var vfileLocation$6 = factory$e;
-
-function factory$e(file) {
- var contents = indices$6(String(file));
-
- return {
- toPosition: offsetToPositionFactory$6(contents),
- toOffset: positionToOffsetFactory$6(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$6(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$6(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$6(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
var remarkLintNoTabs = unifiedLintRule('remark-lint:no-tabs', noTabs);
var reason$f = 'Use spaces instead of tabs';
function noTabs(tree, file) {
var content = String(file);
- var position = vfileLocation$6(file).toPosition;
+ var position = vfileLocation(file).toPosition;
var index = content.indexOf('\t');
while (index !== -1) {
@@ -53378,279 +46783,16 @@ var escapeStringRegexp$1 = string => {
.replace(/-/g, '\\x2d');
};
-var convert_1$x = convert$A;
-
-function convert$A(test) {
- if (typeof test === 'string') {
- return typeFactory$x(test)
- }
-
- if (test === null || test === undefined) {
- return ok$y
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$x : matchesFactory$x)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$x(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$A(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$x(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$x(tests) {
- var checks = convertAll$x(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$x(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$y() {
- return true
-}
-
-var unistUtilVisitParents$x = visitParents$x;
-
-
-
-var CONTINUE$12 = true;
-var SKIP$12 = 'skip';
-var EXIT$12 = false;
-
-visitParents$x.CONTINUE = CONTINUE$12;
-visitParents$x.SKIP = SKIP$12;
-visitParents$x.EXIT = EXIT$12;
-
-function visitParents$x(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$x(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$x(visitor(node, parents));
-
- if (result[0] === EXIT$12) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$12) {
- subresult = toResult$x(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$12 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$12) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$x(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$12, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$x = visit$x;
-
-
-
-var CONTINUE$13 = unistUtilVisitParents$x.CONTINUE;
-var SKIP$13 = unistUtilVisitParents$x.SKIP;
-var EXIT$13 = unistUtilVisitParents$x.EXIT;
-
-visit$x.CONTINUE = CONTINUE$13;
-visit$x.SKIP = SKIP$13;
-visit$x.EXIT = EXIT$13;
-
-function visit$x(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$x(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
-var vfileLocation$7 = factory$f;
-
-function factory$f(file) {
- var contents = indices$7(String(file));
-
- return {
- toPosition: offsetToPositionFactory$7(contents),
- toOffset: positionToOffsetFactory$7(contents)
- }
-}
-
-// Factory to get the line and column-based `position` for `offset` in the bound
-// indices.
-function offsetToPositionFactory$7(indices) {
- return offsetToPosition
-
- // Get the line and column-based `position` for `offset` in the bound indices.
- function offsetToPosition(offset) {
- var index = -1;
- var length = indices.length;
-
- if (offset < 0) {
- return {}
- }
-
- while (++index < length) {
- if (indices[index] > offset) {
- return {
- line: index + 1,
- column: offset - (indices[index - 1] || 0) + 1,
- offset: offset
- }
- }
- }
-
- return {}
- }
-}
-
-// Factory to get the `offset` for a line and column-based `position` in the
-// bound indices.
-function positionToOffsetFactory$7(indices) {
- return positionToOffset
-
- // Get the `offset` for a line and column-based `position` in the bound
- // indices.
- function positionToOffset(position) {
- var line = position && position.line;
- var column = position && position.column;
-
- if (!isNaN(line) && !isNaN(column) && line - 1 in indices) {
- return (indices[line - 2] || 0) + column - 1 || 0
- }
-
- return -1
- }
-}
-
-// Get indices of line-breaks in `value`.
-function indices$7(value) {
- var result = [];
- var index = value.indexOf('\n');
-
- while (index !== -1) {
- result.push(index + 1);
- index = value.indexOf('\n', index + 1);
- }
-
- result.push(value.length + 1);
-
- return result
-}
-
const start$g = unistUtilPosition.start;
var remarkLintProhibitedStrings = unifiedLintRule('remark-lint:prohibited-strings', prohibitedStrings);
function testProhibited (val, content) {
let regexpFlags = 'g';
+ let no = val.no;
- if (!val.no) {
- val.no = escapeStringRegexp$1(val.yes);
+ if (!no) {
+ no = escapeStringRegexp$1(val.yes);
regexpFlags += 'i';
}
@@ -53659,21 +46801,21 @@ function testProhibited (val, content) {
const ignoreNextTo = val.ignoreNextTo ? escapeStringRegexp$1(val.ignoreNextTo) : '';
// If it starts with a letter, make sure it is a word break.
- if (/^\b/.test(val.no)) {
+ if (/^\b/.test(no)) {
regexpString += '\\b';
}
if (ignoreNextTo) {
regexpString += `(? min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$14) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$y(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$14, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$y = visit$y;
-
-
-
-var CONTINUE$15 = unistUtilVisitParents$y.CONTINUE;
-var SKIP$15 = unistUtilVisitParents$y.SKIP;
-var EXIT$15 = unistUtilVisitParents$y.EXIT;
-
-visit$y.CONTINUE = CONTINUE$15;
-visit$y.SKIP = SKIP$15;
-visit$y.EXIT = EXIT$15;
-
-function visit$y(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$y(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var rule = unifiedLintRule;
@@ -53927,7 +46878,7 @@ function ruleStyle(tree, file, option) {
);
}
- unistUtilVisit$y(tree, 'thematicBreak', visitor);
+ unistUtilVisit(tree, 'thematicBreak', visitor);
function visitor(node) {
var initial = start$h(node).offset;
@@ -53948,197 +46899,6 @@ function ruleStyle(tree, file, option) {
}
}
-var convert_1$z = convert$C;
-
-function convert$C(test) {
- if (typeof test === 'string') {
- return typeFactory$z(test)
- }
-
- if (test === null || test === undefined) {
- return ok$A
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$z : matchesFactory$z)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$z(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$C(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$z(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$z(tests) {
- var checks = convertAll$z(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$z(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$A() {
- return true
-}
-
-var unistUtilVisitParents$z = visitParents$z;
-
-
-
-var CONTINUE$16 = true;
-var SKIP$16 = 'skip';
-var EXIT$16 = false;
-
-visitParents$z.CONTINUE = CONTINUE$16;
-visitParents$z.SKIP = SKIP$16;
-visitParents$z.EXIT = EXIT$16;
-
-function visitParents$z(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$z(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$z(visitor(node, parents));
-
- if (result[0] === EXIT$16) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$16) {
- subresult = toResult$z(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$16 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$16) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$z(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$16, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$z = visit$z;
-
-
-
-var CONTINUE$17 = unistUtilVisitParents$z.CONTINUE;
-var SKIP$17 = unistUtilVisitParents$z.SKIP;
-var EXIT$17 = unistUtilVisitParents$z.EXIT;
-
-visit$z.CONTINUE = CONTINUE$17;
-visit$z.SKIP = SKIP$17;
-visit$z.EXIT = EXIT$17;
-
-function visit$z(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$z(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintStrongMarker = unifiedLintRule('remark-lint:strong-marker', strongMarker);
var markers$1 = {'*': true, _: true, null: true};
@@ -54156,7 +46916,7 @@ function strongMarker(tree, file, option) {
);
}
- unistUtilVisit$z(tree, 'strong', visitor);
+ unistUtilVisit(tree, 'strong', visitor);
function visitor(node) {
var marker = contents.charAt(unistUtilPosition.start(node).offset);
@@ -54176,197 +46936,6 @@ function strongMarker(tree, file, option) {
}
}
-var convert_1$A = convert$D;
-
-function convert$D(test) {
- if (typeof test === 'string') {
- return typeFactory$A(test)
- }
-
- if (test === null || test === undefined) {
- return ok$B
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$A : matchesFactory$A)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$A(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$D(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$A(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$A(tests) {
- var checks = convertAll$A(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$A(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$B() {
- return true
-}
-
-var unistUtilVisitParents$A = visitParents$A;
-
-
-
-var CONTINUE$18 = true;
-var SKIP$18 = 'skip';
-var EXIT$18 = false;
-
-visitParents$A.CONTINUE = CONTINUE$18;
-visitParents$A.SKIP = SKIP$18;
-visitParents$A.EXIT = EXIT$18;
-
-function visitParents$A(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$A(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$A(visitor(node, parents));
-
- if (result[0] === EXIT$18) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$18) {
- subresult = toResult$A(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$18 ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$18) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$A(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$18, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$A = visit$A;
-
-
-
-var CONTINUE$19 = unistUtilVisitParents$A.CONTINUE;
-var SKIP$19 = unistUtilVisitParents$A.SKIP;
-var EXIT$19 = unistUtilVisitParents$A.EXIT;
-
-visit$A.CONTINUE = CONTINUE$19;
-visit$A.SKIP = SKIP$19;
-visit$A.EXIT = EXIT$19;
-
-function visit$A(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$A(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintTableCellPadding = unifiedLintRule('remark-lint:table-cell-padding', tableCellPadding);
var start$i = unistUtilPosition.start;
@@ -54387,7 +46956,7 @@ function tableCellPadding(tree, file, option) {
);
}
- unistUtilVisit$A(tree, 'table', visitor);
+ unistUtilVisit(tree, 'table', visitor);
function visitor(node) {
var rows = node.children;
@@ -54460,7 +47029,7 @@ function tableCellPadding(tree, file, option) {
checkSide('end', entry, style, sizes);
}
- return unistUtilVisit$A.SKIP
+ return unistUtilVisit.SKIP
}
function checkSide(side, entry, style, sizes) {
@@ -54503,197 +47072,6 @@ function size(node) {
return end$a(node).offset - start$i(node).offset
}
-var convert_1$B = convert$E;
-
-function convert$E(test) {
- if (typeof test === 'string') {
- return typeFactory$B(test)
- }
-
- if (test === null || test === undefined) {
- return ok$C
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$B : matchesFactory$B)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$B(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$E(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$B(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$B(tests) {
- var checks = convertAll$B(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$B(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$C() {
- return true
-}
-
-var unistUtilVisitParents$B = visitParents$B;
-
-
-
-var CONTINUE$1a = true;
-var SKIP$1a = 'skip';
-var EXIT$1a = false;
-
-visitParents$B.CONTINUE = CONTINUE$1a;
-visitParents$B.SKIP = SKIP$1a;
-visitParents$B.EXIT = EXIT$1a;
-
-function visitParents$B(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$B(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$B(visitor(node, parents));
-
- if (result[0] === EXIT$1a) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$1a) {
- subresult = toResult$B(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$1a ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$1a) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$B(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$1a, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$B = visit$B;
-
-
-
-var CONTINUE$1b = unistUtilVisitParents$B.CONTINUE;
-var SKIP$1b = unistUtilVisitParents$B.SKIP;
-var EXIT$1b = unistUtilVisitParents$B.EXIT;
-
-visit$B.CONTINUE = CONTINUE$1b;
-visit$B.SKIP = SKIP$1b;
-visit$B.EXIT = EXIT$1b;
-
-function visit$B(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$B(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintTablePipes = unifiedLintRule('remark-lint:table-pipes', tablePipes);
var start$j = unistUtilPosition.start;
@@ -54705,7 +47083,7 @@ var reasonEnd = 'Missing final pipe in table fence';
function tablePipes(tree, file) {
var contents = String(file);
- unistUtilVisit$B(tree, 'table', visitor);
+ unistUtilVisit(tree, 'table', visitor);
function visitor(node) {
var rows = node.children;
@@ -54740,197 +47118,6 @@ function tablePipes(tree, file) {
}
}
-var convert_1$C = convert$F;
-
-function convert$F(test) {
- if (typeof test === 'string') {
- return typeFactory$C(test)
- }
-
- if (test === null || test === undefined) {
- return ok$D
- }
-
- if (typeof test === 'object') {
- return ('length' in test ? anyFactory$C : matchesFactory$C)(test)
- }
-
- if (typeof test === 'function') {
- return test
- }
-
- throw new Error('Expected function, string, or object as test')
-}
-
-function convertAll$C(tests) {
- var results = [];
- var length = tests.length;
- var index = -1;
-
- while (++index < length) {
- results[index] = convert$F(tests[index]);
- }
-
- return results
-}
-
-// Utility assert each property in `test` is represented in `node`, and each
-// values are strictly equal.
-function matchesFactory$C(test) {
- return matches
-
- function matches(node) {
- var key;
-
- for (key in test) {
- if (node[key] !== test[key]) {
- return false
- }
- }
-
- return true
- }
-}
-
-function anyFactory$C(tests) {
- var checks = convertAll$C(tests);
- var length = checks.length;
-
- return matches
-
- function matches() {
- var index = -1;
-
- while (++index < length) {
- if (checks[index].apply(this, arguments)) {
- return true
- }
- }
-
- return false
- }
-}
-
-// Utility to convert a string into a function which checks a given node’s type
-// for said string.
-function typeFactory$C(test) {
- return type
-
- function type(node) {
- return Boolean(node && node.type === test)
- }
-}
-
-// Utility to return true.
-function ok$D() {
- return true
-}
-
-var unistUtilVisitParents$C = visitParents$C;
-
-
-
-var CONTINUE$1c = true;
-var SKIP$1c = 'skip';
-var EXIT$1c = false;
-
-visitParents$C.CONTINUE = CONTINUE$1c;
-visitParents$C.SKIP = SKIP$1c;
-visitParents$C.EXIT = EXIT$1c;
-
-function visitParents$C(tree, test, visitor, reverse) {
- var is;
-
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- is = convert_1$C(test);
-
- one(tree, null, []);
-
- // Visit a single node.
- function one(node, index, parents) {
- var result = [];
- var subresult;
-
- if (!test || is(node, index, parents[parents.length - 1] || null)) {
- result = toResult$C(visitor(node, parents));
-
- if (result[0] === EXIT$1c) {
- return result
- }
- }
-
- if (node.children && result[0] !== SKIP$1c) {
- subresult = toResult$C(all(node.children, parents.concat(node)));
- return subresult[0] === EXIT$1c ? subresult : result
- }
-
- return result
- }
-
- // Visit children in `parent`.
- function all(children, parents) {
- var min = -1;
- var step = reverse ? -1 : 1;
- var index = (reverse ? children.length : min) + step;
- var result;
-
- while (index > min && index < children.length) {
- result = one(children[index], index, parents);
-
- if (result[0] === EXIT$1c) {
- return result
- }
-
- index = typeof result[1] === 'number' ? result[1] : index + step;
- }
- }
-}
-
-function toResult$C(value) {
- if (value !== null && typeof value === 'object' && 'length' in value) {
- return value
- }
-
- if (typeof value === 'number') {
- return [CONTINUE$1c, value]
- }
-
- return [value]
-}
-
-var unistUtilVisit$C = visit$C;
-
-
-
-var CONTINUE$1d = unistUtilVisitParents$C.CONTINUE;
-var SKIP$1d = unistUtilVisitParents$C.SKIP;
-var EXIT$1d = unistUtilVisitParents$C.EXIT;
-
-visit$C.CONTINUE = CONTINUE$1d;
-visit$C.SKIP = SKIP$1d;
-visit$C.EXIT = EXIT$1d;
-
-function visit$C(tree, test, visitor, reverse) {
- if (typeof test === 'function' && typeof visitor !== 'function') {
- reverse = visitor;
- visitor = test;
- test = null;
- }
-
- unistUtilVisitParents$C(tree, test, overload, reverse);
-
- function overload(node, parents) {
- var parent = parents[parents.length - 1];
- var index = parent ? parent.children.indexOf(node) : null;
- return visitor(node, index, parent)
- }
-}
-
var remarkLintUnorderedListMarkerStyle = unifiedLintRule(
'remark-lint:unordered-list-marker-style',
unorderedListMarkerStyle
@@ -54958,7 +47145,7 @@ function unorderedListMarkerStyle(tree, file, option) {
);
}
- unistUtilVisit$C(tree, 'list', visitor);
+ unistUtilVisit(tree, 'list', visitor);
function visitor(node) {
var children = node.children;
diff --git a/tools/node-lint-md-cli-rollup/package-lock.json b/tools/node-lint-md-cli-rollup/package-lock.json
index efd36027c65..660d0802ca2 100644
--- a/tools/node-lint-md-cli-rollup/package-lock.json
+++ b/tools/node-lint-md-cli-rollup/package-lock.json
@@ -856,32 +856,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-checkbox-character-style": {
@@ -894,37 +868,6 @@
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0",
"vfile-location": "^3.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-lint-checkbox-content-indent": {
@@ -937,37 +880,6 @@
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0",
"vfile-location": "^3.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-lint-code-block-style": {
@@ -979,32 +891,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-definition-spacing": {
@@ -1016,32 +902,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-fenced-code-flag": {
@@ -1053,32 +913,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-fenced-code-marker": {
@@ -1090,32 +924,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-file-extension": {
@@ -1135,32 +943,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-final-newline": {
@@ -1179,32 +961,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-hard-break-spaces": {
@@ -1216,32 +972,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-heading-style": {
@@ -1253,32 +983,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-list-item-bullet-indent": {
@@ -1291,32 +995,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-list-item-indent": {
@@ -1329,32 +1007,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-maximum-line-length": {
@@ -1366,32 +1018,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-auto-link-without-protocol": {
@@ -1404,32 +1030,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-blockquote-without-marker": {
@@ -1442,37 +1042,6 @@
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0",
"vfile-location": "^3.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-lint-no-consecutive-blank-lines": {
@@ -1485,32 +1054,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-duplicate-definitions": {
@@ -1523,32 +1066,6 @@
"unist-util-position": "^3.0.0",
"unist-util-stringify-position": "^2.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-file-name-articles": {
@@ -1586,32 +1103,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-heading-indent": {
@@ -1624,32 +1115,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-inline-padding": {
@@ -1661,32 +1126,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-literal-urls": {
@@ -1699,32 +1138,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-multiple-toplevel-headings": {
@@ -1737,68 +1150,16 @@
"unist-util-position": "^3.0.0",
"unist-util-stringify-position": "^2.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-shell-dollars": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/remark-lint-no-shell-dollars/-/remark-lint-no-shell-dollars-2.0.0.tgz",
- "integrity": "sha512-1uEM0kSGlV6UY7w3PdIeIf/USFFvVuU1352myQdaiw/Wof7+uVXznFFCPnhJDTVlPN4vrgwFnLb32UwXrjkrQw==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/remark-lint-no-shell-dollars/-/remark-lint-no-shell-dollars-2.0.1.tgz",
+ "integrity": "sha512-N+wOq3nmZ8WnCreWhi/rfIKQJPAz+pcbErQATcnQzH0znzldXlX8Ovlm54yDx/A+TmGMex/epkCwuiewIj9m4g==",
"requires": {
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-shortcut-reference-image": {
@@ -1809,32 +1170,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-shortcut-reference-link": {
@@ -1845,32 +1180,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-table-indentation": {
@@ -1882,32 +1191,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-tabs": {
@@ -1917,13 +1200,6 @@
"requires": {
"unified-lint-rule": "^1.0.0",
"vfile-location": "^3.0.0"
- },
- "dependencies": {
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-lint-no-trailing-spaces": {
@@ -1943,32 +1219,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-no-unused-definitions": {
@@ -1979,32 +1229,6 @@
"unified-lint-rule": "^1.0.0",
"unist-util-generated": "^1.1.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-ordered-list-marker-style": {
@@ -2016,38 +1240,12 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-prohibited-strings": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/remark-lint-prohibited-strings/-/remark-lint-prohibited-strings-1.5.1.tgz",
- "integrity": "sha512-YZoRWbzIGRIQkngAowwAKG39kUAGSalYvrxqTzUU4LYj1dS37q7i5WDr4m/mnCcc5KwRin08D62Dphs6g9Btnw==",
+ "version": "1.5.2",
+ "resolved": "https://registry.npmjs.org/remark-lint-prohibited-strings/-/remark-lint-prohibited-strings-1.5.2.tgz",
+ "integrity": "sha512-1+WIHboeLxmAnlxTFW6XNfvxvhnC2WRxn0rGgcNp/M7CrANHhnadY2/YeXFLF9oY22SAylrxiPG9eAuUmJuW6w==",
"requires": {
"escape-string-regexp": "^4.0.0",
"unified-lint-rule": "^1.0.2",
@@ -2060,35 +1258,6 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="
- },
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
}
}
},
@@ -2101,32 +1270,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-strong-marker": {
@@ -2138,32 +1281,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-table-cell-padding": {
@@ -2175,32 +1292,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-table-pipes": {
@@ -2212,32 +1303,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-lint-unordered-list-marker-style": {
@@ -2249,32 +1314,6 @@
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^2.0.0"
- },
- "dependencies": {
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- }
}
},
"remark-message-control": {
@@ -2310,9 +1349,9 @@
}
},
"remark-preset-lint-node": {
- "version": "1.15.0",
- "resolved": "https://registry.npmjs.org/remark-preset-lint-node/-/remark-preset-lint-node-1.15.0.tgz",
- "integrity": "sha512-1G7S2F/u7bk3kc4tZPrUphceP0RfT9AF6e+gzWbNi8URutECe3kl+Ur6ooMI5f1VqJUzcLF/U1YuhnFhkPnKkA==",
+ "version": "1.15.1",
+ "resolved": "https://registry.npmjs.org/remark-preset-lint-node/-/remark-preset-lint-node-1.15.1.tgz",
+ "integrity": "sha512-jRWBKCEkLGObhlgmlth0w78vxLKxvJYnkpqLvkl5AAatytv9kHjc4fN/dfUX2rj1KFYr/xC4KG/MM68gKQNJ0w==",
"requires": {
"remark-lint": "^7.0.0",
"remark-lint-blockquote-indentation": "^2.0.0",
@@ -2338,70 +1377,13 @@
"remark-lint-no-table-indentation": "^2.0.0",
"remark-lint-no-tabs": "^2.0.0",
"remark-lint-no-trailing-spaces": "^2.0.1",
- "remark-lint-prohibited-strings": "^1.5.1",
+ "remark-lint-prohibited-strings": "^1.5.2",
"remark-lint-rule-style": "^2.0.0",
"remark-lint-strong-marker": "^2.0.0",
"remark-lint-table-cell-padding": "^2.0.0",
"remark-lint-table-pipes": "^2.0.0",
"remark-lint-unordered-list-marker-style": "^2.0.0",
"remark-preset-lint-recommended": "^4.0.0"
- },
- "dependencies": {
- "remark-lint": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/remark-lint/-/remark-lint-7.0.0.tgz",
- "integrity": "sha512-OLrWPYy0MUcGLa/2rjuy1kQILTRRK+JiRtyUzqe4XRoHboGuvFDcy/W2e7sq5hu/0xmD+Eh7cEa1Coiqp7LeaA==",
- "requires": {
- "remark-message-control": "^6.0.0"
- }
- },
- "remark-message-control": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/remark-message-control/-/remark-message-control-6.0.0.tgz",
- "integrity": "sha512-k9bt7BYc3G7YBdmeAhvd3VavrPa/XlKWR3CyHjr4sLO9xJyly8WHHT3Sp+8HPR8lEUv+/sZaffL7IjMLV0f6BA==",
- "requires": {
- "mdast-comment-marker": "^1.0.0",
- "unified-message-control": "^3.0.0"
- }
- },
- "unified-message-control": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/unified-message-control/-/unified-message-control-3.0.1.tgz",
- "integrity": "sha512-K2Kvvp1DBzeuxYLLsumZh/gDWUTl4e2z/P3VReFirC78cfHKtQifbhnfRrSBtKtd1Uc6cvYTW0/SZIUaMAEcTg==",
- "requires": {
- "unist-util-visit": "^2.0.0",
- "vfile-location": "^3.0.0"
- }
- },
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-preset-lint-recommended": {
@@ -2425,63 +1407,6 @@
"remark-lint-no-undefined-references": "^2.0.0",
"remark-lint-no-unused-definitions": "^2.0.0",
"remark-lint-ordered-list-marker-style": "^2.0.0"
- },
- "dependencies": {
- "remark-lint": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/remark-lint/-/remark-lint-7.0.0.tgz",
- "integrity": "sha512-OLrWPYy0MUcGLa/2rjuy1kQILTRRK+JiRtyUzqe4XRoHboGuvFDcy/W2e7sq5hu/0xmD+Eh7cEa1Coiqp7LeaA==",
- "requires": {
- "remark-message-control": "^6.0.0"
- }
- },
- "remark-message-control": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/remark-message-control/-/remark-message-control-6.0.0.tgz",
- "integrity": "sha512-k9bt7BYc3G7YBdmeAhvd3VavrPa/XlKWR3CyHjr4sLO9xJyly8WHHT3Sp+8HPR8lEUv+/sZaffL7IjMLV0f6BA==",
- "requires": {
- "mdast-comment-marker": "^1.0.0",
- "unified-message-control": "^3.0.0"
- }
- },
- "unified-message-control": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/unified-message-control/-/unified-message-control-3.0.1.tgz",
- "integrity": "sha512-K2Kvvp1DBzeuxYLLsumZh/gDWUTl4e2z/P3VReFirC78cfHKtQifbhnfRrSBtKtd1Uc6cvYTW0/SZIUaMAEcTg==",
- "requires": {
- "unist-util-visit": "^2.0.0",
- "vfile-location": "^3.0.0"
- }
- },
- "unist-util-is": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.0.2.tgz",
- "integrity": "sha512-Ofx8uf6haexJwI1gxWMGg6I/dLnF2yE+KibhD3/diOqY2TinLcqHXCV6OI5gFVn3xQqDH+u0M625pfKwIwgBKQ=="
- },
- "unist-util-visit": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.2.tgz",
- "integrity": "sha512-HoHNhGnKj6y+Sq+7ASo2zpVdfdRifhTgX2KTU3B/sO/TTlZchp7E3S4vjRzDJ7L60KmrCPsQkVK3lEF3cz36XQ==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0",
- "unist-util-visit-parents": "^3.0.0"
- }
- },
- "unist-util-visit-parents": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.0.2.tgz",
- "integrity": "sha512-yJEfuZtzFpQmg1OSCyS9M5NJRrln/9FbYosH3iW0MG402QbdbaB8ZESwUv9RO6nRfLAKvWcMxCwdLWOov36x/g==",
- "requires": {
- "@types/unist": "^2.0.0",
- "unist-util-is": "^4.0.0"
- }
- },
- "vfile-location": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.0.1.tgz",
- "integrity": "sha512-yYBO06eeN/Ki6Kh1QAkgzYpWT1d3Qln+ZCtSbJqFExPl1S3y2qqotJQXoh6qEvl/jDlgpUJolBn3PItVnnZRqQ=="
- }
}
},
"remark-stringify": {
diff --git a/tools/node-lint-md-cli-rollup/package.json b/tools/node-lint-md-cli-rollup/package.json
index aa203f67b33..ee03028112b 100644
--- a/tools/node-lint-md-cli-rollup/package.json
+++ b/tools/node-lint-md-cli-rollup/package.json
@@ -13,7 +13,7 @@
"markdown-extensions": "^1.1.1",
"remark": "^12.0.0",
"remark-lint": "^7.0.0",
- "remark-preset-lint-node": "^1.15.0",
+ "remark-preset-lint-node": "^1.15.1",
"unified-args": "^8.0.0"
},
"main": "dist/index.js",