mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2026-02-10 23:09:47 +01:00
fix: ignore external https image links
This commit is contained in:
@@ -152,7 +152,7 @@ test("ensure the rule validates correctly", async (t) => {
|
||||
fixturePath: "test/fixtures/invalid/invalid-image.md",
|
||||
errors: [
|
||||
'"../not-an-image.txt" should be an image',
|
||||
'"mailto:not-an-image@pictures.com" should exist in the file system',
|
||||
'"mailto:not-an-image@pictures.com" should be an image',
|
||||
],
|
||||
},
|
||||
]
|
||||
@@ -239,6 +239,10 @@ test("ensure the rule validates correctly", async (t) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "should ignore external image links",
|
||||
fixturePath: "test/fixtures/valid/ignore-external-image.md",
|
||||
},
|
||||
]
|
||||
|
||||
for (const { name, fixturePath, config = defaultConfig } of testCases) {
|
||||
|
||||
Reference in New Issue
Block a user