mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 06:50:12 +01:00
Update MD039/no-space-in-links to fix reference-style links, be slightly more permissive matching link content.
This commit is contained in:
parent
064a1e33e1
commit
7a76f1d22d
6 changed files with 163 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue