mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-16 12:45:28 +01:00
19 lines
No EOL
518 B
Markdown
19 lines
No EOL
518 B
Markdown
# MD011 - Reversed link syntax
|
|
|
|
Tags: links
|
|
|
|
Aliases: no-reversed-links
|
|
|
|
This rule is triggered when text that appears to be a link is encountered, but
|
|
where the syntax appears to have been reversed (the `[]` and `()` are
|
|
reversed):
|
|
|
|
(Incorrect link syntax)[http://www.example.com/]
|
|
|
|
To fix this, swap the `[]` and `()` around:
|
|
|
|
[Correct link syntax](http://www.example.com/)
|
|
|
|
Note: [Markdown Extra](https://en.wikipedia.org/wiki/Markdown_Extra)-style footnotes do not trigger this rule:
|
|
|
|
For (example)[^1] |