mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-23 09:20:12 +01:00
Update MD033/no-inline-html to ignore email autolinks (fixes #183).
This commit is contained in:
parent
ad8e4007c0
commit
f003926a72
3 changed files with 27 additions and 3 deletions
|
|
@ -79,3 +79,13 @@ Text <a href="#anchor">inline</a> text
|
|||
text <img src="src.png"/> text
|
||||
|
||||
Text
|
||||
|
||||
<name@example.com> is an email autolink.
|
||||
|
||||
Text
|
||||
|
||||
Another email autolink: <first+last@ex.exa-mple.com>.
|
||||
|
||||
Text
|
||||
|
||||
But <foo.bar.baz> is not an email autolink.
|
||||
|
|
|
|||
|
|
@ -151,5 +151,14 @@
|
|||
"errorDetail": "Element: img",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 6, 20 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 91,
|
||||
"ruleNames": [ "MD033", "no-inline-html" ],
|
||||
"ruleDescription": "Inline HTML",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md033",
|
||||
"errorDetail": "Element: foo.bar.baz",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 5, 13 ]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue