Update MD039/no-space-in-links to fix reference-style links, be slightly more permissive matching link content.

This commit is contained in:
David Anson 2021-12-22 14:52:43 -08:00
parent 064a1e33e1
commit 7a76f1d22d
6 changed files with 163 additions and 2 deletions

View file

@ -3712,7 +3712,7 @@ module.exports = {
// @ts-check
var _a = __webpack_require__(/*! ../helpers */ "../helpers/helpers.js"), addErrorContext = _a.addErrorContext, filterTokens = _a.filterTokens;
var spaceInLinkRe = /\[(?:\s+(?:[^\]]*?)\s*|(?:[^\]]*?)\s+)](?=\(\S*\))/;
var spaceInLinkRe = /\[(?:\s+(?:[^\]]*?)\s*|(?:[^\]]*?)\s+)](?=((?:\([^)]*\))|(?:\[[^\]]*\])))/;
module.exports = {
"names": ["MD039", "no-space-in-links"],
"description": "Spaces inside link text",