mdsmith
Esc
    v0.52.0 GitHub
    MDS049 link ready

    MDS049: no-space-in-link-text

    Link text and image alt text must not have leading or trailing whitespace inside the brackets.

    [ click here ](url) renders the spaces as part of the underlined text in most renderers.

    # Config

    Enable:

    rules:
      no-space-in-link-text: true

    Disable:

    rules:
      no-space-in-link-text: false

    Disable image alt-text checking:

    rules:
      no-space-in-link-text:
        check-images: false

    # Examples

    # Bad

    # Title
    
    [ text ](https://example.com)

    # Good

    # Title
    
    Visit [example](https://example.com) for more.
    
    ![logo](good/logo.png)

    # Meta-Information

    • ID: MDS049
    • Name: no-space-in-link-text
    • Status: ready
    • Default: disabled (opt-in)
    • Fixable: yes
    • Implementation: source
    • Category: link
    • markdownlint: MD039 (no-space-in-links)
    • rumdl: MD039 (no-space-in-links)
    • mado: MD039 (no-space-in-links)