Skip to content

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.

![]()
![Flint Logo]()
![](#)

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.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.