Fix MD039/no-space-in-links to handle links within a multi-line paragraph.

This commit is contained in:
David Anson 2019-09-24 23:00:30 -07:00
parent 1ac2e6c3e8
commit 33cb1a71ec
2 changed files with 17 additions and 1 deletions

View file

@ -30,3 +30,14 @@
The following shouldn't break anything:
[![Screenshot.png](/images/Screenshot.png)](/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;
}