errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.52k stars 155 forks source link

Word in `reject.txt` not flagged as error if it appears in a bullet list #893

Open dagardner-nv opened 3 months ago

dagardner-nv commented 3 months ago

Check for existing issues

Environment

Describe the bug / provide steps to reproduce it

I added the word TODO to my reject.txt file, however vale fails to recognize the word when it appears in a markdown bullet list. Full repro is available at: https://github.com/dagardner-nv/vale_rejected_word_in_list

README.md:

# Test

The word "TODO" appears in the `reject.txt` file. Vale will correctly flag this line as an error but will ignore the one appearing in the bullet list below.

* bullet list
* Module Layer
    * TODO: Add details about modules.

Output, vale correctly identifies the TODO on line 3, but fails to identify the occurrence on line 7:

$ vale README.md 

 README.md
 3:11  error  Avoid using 'TODO'.  Vale.Avoid 

✖ 1 error, 0 warnings and 0 suggestions in 1 file.