-
I want to create a rule that tests something like this: "Change into the I got as far as this, as a
But, I'm finding that Vale doesn't pick up all the issues in our test files. E.g., if I include two almost identical test sentences it might only pick up one. It also behaves differently depending on where the sentences appear (I suspect because it is processing HTML and not AsciiDoc). I've experimented with various placements of regexes, no regexes, etc., but as soon as I introduce (e.g.) Just FYI the asterisks are there in the replacement string because Vale doesn't seem to support capture groups, or at least I haven't worked out how to do it. If you know how, please share. Thanks :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I offer my test files to help anyone who might like to look at this:
And the output when I run Vale over that test file:
|
Beta Was this translation helpful? Give feedback.
If you need to match against markup syntax (e.g., words inside backticks here), you'll want to use
scope: raw
to bypass any markup processing.