2019-04-17 14:45:28 -07:00
|
|
|
# Spaces Inside Link Text
|
|
|
|
|
|
|
|
[](http://bar/)
|
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[foo](https://bar/)
|
2015-04-15 18:24:42 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
["foo"](https://bar/)
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[`foo`](https://bar/)
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[*foo*](https://bar/)
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2022-05-06 21:42:31 -07:00
|
|
|
[__foo__](https://bar/)
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[foo "bar"](https://baz/)
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-04-17 14:45:28 -07:00
|
|
|
[ ](https://bar/) {MD039}
|
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[foo ](https://bar/) {MD039}
|
2015-04-15 18:24:42 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[ foo](https://bar/) {MD039}
|
2015-04-15 18:24:42 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[ foo ](https://bar/) {MD039}
|
2015-04-15 18:24:42 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[ "foo" ](https://bar/) {MD039}
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[ `foo` ](https://bar/) {MD039}
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2019-02-10 11:38:01 -08:00
|
|
|
[ *foo* ](https://bar/) {MD039}
|
2018-07-19 22:00:31 -07:00
|
|
|
|
2022-05-06 21:42:31 -07:00
|
|
|
[ __foo__ ](https://bar/) {MD039}
|
|
|
|
|
2015-04-15 18:24:42 -07:00
|
|
|
The following shouldn't break anything:
|
|
|
|
[](/images/Screenshot.png)
|
2019-09-24 23:00:30 -07:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2019-09-28 22:50:33 -07:00
|
|
|
|
|
|
|
[Links](ending)
|
|
|
|
[with](spaces)
|
|
|
|
[error ]({MD039})
|
2020-03-07 19:49:57 -08:00
|
|
|
|
|
|
|
Wrapped [ link with leading space
|
|
|
|
](https://example.com) {MD039}
|
|
|
|
|
|
|
|
Non-wrapped [ link with leading space](https://example.com) {MD039}
|
2021-12-22 14:52:43 -08:00
|
|
|
|
|
|
|
[][ref]
|
|
|
|
|
|
|
|
[link][ref]
|
|
|
|
|
|
|
|
[link ][ref] {MD039}
|
|
|
|
|
|
|
|
[ link][ref] {MD039}
|
|
|
|
|
|
|
|
[ link ][ref] {MD039}
|
|
|
|
|
|
|
|
[ref]: https://example.com
|