Skip to content

New Rule: Report on and remove trailing slashes from links #448

Closed as not planned
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Rule details

If a URL has a trailing link, e.g. www.google.com/, that trailing / is unnecessary and should be removed.

What type of rule is this?

Warns about a potential problem

Example code

https://www.google.com/
www.google.com/
google.com/

Prior Art

* https://github.com/vhf/remark-lint-no-url-trailing-slash
* https://github.com/xiaogaozi/markdownlint-rule-no-trailing-slash-in-links

Participation

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

Additional comments

This was originally requested in #228 by @DamianGlowala. Back then, this project was just a processor and did not have rules. It does now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions