Skip to content

New Rule: no-empty-images #355

@lumirlumir

Description

@lumirlumir

Rule details

Rule to disallow empty images

What type of rule is this?

Warns about a potential problem

Example code

<!-- ERROR -->

![]()

![](#)

![image]()

<!-- OK -->

![](https://google.com/image.png)

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

Hello,

I’d like to propose a new rule: no-empty-images.

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 something in Markdown, where you might intend to insert an image and leave the destination to fill in later—only to forget to go back and complete it.

This often results in broken image links like the one below:

Image


If this proposal is acceptable, I’d like to go ahead and submit a PR before May 10!

Metadata

Metadata

Assignees

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions