Skip to content

Bold text in list items and <br/> tags inside table cells cause false positives #1157

Description

@eread

Check for existing issues

  • Completed

Environment

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

Describe the bug / provide steps to reproduce it

When upgrading from Vale 3.15.1 to 3.19.0, I notice a change in behaviour. Follow these steps to reproduce:

  1. In a new directory, create this file structure:
    • styles/Test/Repetition.yml
    • styles/Test/Spacing.yml
    • .vale.ini
    • test.md
  2. In styles/Test/Repetition.yml, put this content:
    extends: repetition
    message: '"%s" is repeated.'
    level: error
    alpha: true
    tokens:
      - '[^\s]+'
  3. In styles/Test/Spacing.yml, put this content:
    extends: existence
    message: "No space at '%s'."
    level: error
    nonword: true
    tokens:
      - '[a-z][.?!,][A-Z]'
  4. In .vale.ini, put this content:
    StylesPath = styles
    MinAlertLevel = suggestion
    
    [*.md]
    BasedOnStyles = Test
    
  5. In test.md, put this content:
    # Test Markdown
    
    1. Click **Click here** to continue.
    
    | Column   | Description |
    |----------|--------------|
    | Example  | This is the first sentence.<br/><br/>This is the second sentence. |
  6. Run vale test.md (using version 3.19.0). This is the result:
    test.md
    3:4   error  "Click" is repeated.  Test.Repetition 
    7:39  error  No space at 'e.T'.    Test.Spacing    
    
    ✖ 2 errors, 0 warnings and 0 suggestions in 1 file.
  7. Run vale test.md (using version 3.15.1). This is the result:
    ✔ 0 errors, 0 warnings and 0 suggestions in 1 file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions