imageContents
Reports images with empty URLs or only empty fragments.
✅ This rule is included in the md logical
preset.
In Markdown, it’s not always easy to spot when you’ve forgotten to provide a destination for an image.
This is especially common when writing content and intending to insert an image later, leaving the destination empty as a placeholder, only to forget to complete it.
An image with an empty URL or only an empty fragment (#
) results in broken image links.
Examples
Section titled “Examples”![]()
![Flint Logo]()



When Not To Use It
Section titled “When Not To Use It”If you intentionally use empty image URLs as placeholders and have a framework or other workflow that always fills them in later, you might want to disable this rule.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
markdown/no-empty-images
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.