mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Fix MD039/no-space-in-links to handle links within a multi-line paragraph.
This commit is contained in:
parent
1ac2e6c3e8
commit
33cb1a71ec
2 changed files with 17 additions and 1 deletions
|
|
@ -30,3 +30,14 @@
|
|||
|
||||
The following shouldn't break anything:
|
||||
[](/images/Screenshot.png)
|
||||
|
||||
function CodeButNotCode(input) {
|
||||
return input.replace(/[- ]([a-z])/g, "one"); // {MD039}
|
||||
}
|
||||
|
||||
function MoreCodeButNotCode(input) {
|
||||
input = input.replace(/[- ]([a-z])/g, "two"); // {MD039}
|
||||
input = input.toLowerCase();
|
||||
input = input.replace(/[- ]([a-z])/g, "three"); // {MD039}
|
||||
return input;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue