|
|
|
@ -13,6 +13,13 @@ describe("normalizeMarkdownImageUrls", () => { |
|
|
|
expect(result).toBe(""); |
|
|
|
}); |
|
|
|
|
|
|
|
test("converts other site-relative image links to absolute URLs", () => { |
|
|
|
const markdown = ""; |
|
|
|
const result = normalizeMarkdownImageUrls(markdown, "https://example.com"); |
|
|
|
|
|
|
|
expect(result).toBe(""); |
|
|
|
}); |
|
|
|
|
|
|
|
test("keeps absolute http/https image links unchanged", () => { |
|
|
|
const markdown = [ |
|
|
|
"", |
|
|
|
|