[GH-ISSUE #301] Idea of new rule: use slash instead of backslash for image path #257

Open
opened 2026-03-03 01:25:11 +03:00 by kerem · 2 comments
Owner

Originally created by @skyoxZ on GitHub (Jun 30, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/301

Correct:

![foo](images/foo.jpg)

Not recommended:

![foo](images\foo.jpg)
Originally created by @skyoxZ on GitHub (Jun 30, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/301 Correct: ``` ![foo](images/foo.jpg) ``` Not recommended: ``` ![foo](images\foo.jpg) ```
Author
Owner

@thawk commented on GitHub (Jul 7, 2022):

What's the state of this rule? It seems that markdown document written in typora use backslash for image path, it make the image broken in gitlab.

<!-- gh-comment-id:1176947487 --> @thawk commented on GitHub (Jul 7, 2022): What's the state of this rule? It seems that markdown document written in typora use backslash for image path, it make the image broken in gitlab.
Author
Owner

@DavidAnson commented on GitHub (Jul 7, 2022):

It sounds like a fairly straightforward rule to implement if anybody wants to do so for npm or as a custom rule in their repository. I have not added it to the core library so far.

<!-- gh-comment-id:1176969775 --> @DavidAnson commented on GitHub (Jul 7, 2022): It sounds like a fairly straightforward rule to implement if anybody wants to do so for npm or as a custom rule in their repository. I have not added it to the core library so far.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#257
No description provided.