I'm running into what appears to be a bug with vale. This repo contains a minimal repro for the bug.
We use Liquid tags in our Markdown documentation to dereference things like product names. I've configured vale to ignore any inline text in Liquid tags {% ... %}
via the TokenIgnores
configuration option. And, most of the time, that seems to exclude things. But occasionally, it appears that what shows up inside the Liquid tags is getting linted anyway? 🤷♂️
- Clone the repo
- Execute the command:
vale test.md
Expected: No errors
Actual: 3 error (see Erroneous Output below)
Notice that the first Liquid tag containing the text is flagged as an error, but the second identical Liquid tag on the same line is not.
test.md
1:169 error Use 'GitHub' instead of Vale.Terms
'github'.
3:65 error Did you really mean 'api'? Vale.Spelling
3:69 error Did you really mean 'url'? Vale.Spelling
In the branch named passing
you can see that changing the accept.txt
term from GitHub
to FooBar
and the Liquid tags from {% data variables.contact.github_support %}
to {% data variables.contact.foobar_support %}
does not reproduce the problem. It passes with zero errors detected.