Skip to content

Markdown links affect processing of whitespace #1174

Closed

Description

@eread

Check for existing issues

  • Completed

Environment

  • macOS 26.6.2.
  • Vale installed by mise.
  • Vale version 3.20.0.

Describe the bug / provide steps to reproduce it

Text wrapped in Markdown link syntax is treated differently than plain Markdown text when processing whitespace.

To reproduce:

  1. In a new directory, create this file structure:
    • styles/Test/Spacing.yml
    • .vale.ini
    • test.md
  2. In styles/Test/Spacing.yml, put this content:
    ---
    extends: existence
    message: "match: '%s'"
    nonword: true
    tokens:
      - '[a-z] +,'
  3. In .vale.ini, put this content:
    StylesPath = styles
    
    [*.md]
    BasedOnStyles = Test
    
  4. In test.md, put this content:
    See the [full guide](link)
    , which has more information.
    
    See the full guide
    , which has more information.
  5. Run vale test.md. This is the result:
     test.md
     1:19  warning  match: 'e ,'  Test.Spacing 
    
    ✖ 0 errors, 1 warning and 0 suggestions in 1 file.

I would expect matching behaviour for line 1 and line 4, ideally that neither is violation of the rule in the scenario.

Activity

  1. eread commented on Sep 3, 2026

    @eread
    Author

    @jdkato This one is similar to #1157, in that the change in behaviour was only recently introduced (I think in version 3.18.0).

    In version 3.17.1:

    ❯ vale --version
    vale version 3.17.1
    
    ❯ vale test.md  
    ✔ 0 errors, 0 warnings and 0 suggestions in 1 file.

    In version 3.18.0:

    ❯ vale --version       
    vale version 3.18.0
    
    ❯ vale test.md         
    
     test.md
     1:19  warning  match: 'e ,'  Test.Spacing 
    
    ✖ 0 errors, 1 warning and 0 suggestions in 1 file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions