feat!: stricter validation of image links (check if the file is an image)

BREAKING CHANGE: links like ![Image](./not-an-image.txt) will now report
an error
This commit is contained in:
2026-02-05 17:46:14 +01:00
parent 12a22980ce
commit 211c71d75b
6 changed files with 30 additions and 5 deletions

4
package-lock.json generated
View File

@@ -9,7 +9,8 @@
"version": "0.0.0-development",
"license": "MIT",
"dependencies": {
"markdown-it": "14.1.0"
"markdown-it": "14.1.0",
"mime": "4.1.0"
},
"devDependencies": {
"@types/markdown-it": "14.1.2",
@@ -3637,7 +3638,6 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-4.1.0.tgz",
"integrity": "sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==",
"dev": true,
"funding": [
"https://github.com/sponsors/broofa"
],