Replies: 3 comments 2 replies
-
Have you thought about adding a "Vale off/Vale on" comment pair in the text? |
Beta Was this translation helpful? Give feedback.
-
I've been watching this and thinking about it, but only had time to get to it today. First it's worth checking you're testing the regex with the Go regex, second I think you can also test with https://studio.vale.sh now. Third, I am not sure how variable lorem impsum text is, but this might even be an interesting test for the newer script rules (https://vale.sh/docs/topics/styles/#script). Perhaps there's some Go library that will handle checking the text existence for you? |
Beta Was this translation helpful? Give feedback.
-
Could you provide an example of the two cases? The distinction between the multi- and single-line variations isn't clear to me. That said, if I had to guess, you want something like this:
If the single-line case can appear inline with other content (which I doubt), you'll need to use |
Beta Was this translation helpful? Give feedback.
-
Our documentation contains a fair bit of Lorem ipsum text, which I would like to automatically exempt from linting. I can define a
BlockIgnores
clause to exclude one version of the text that appears in one line but am having trouble matching text that includes newlines. Here is what I have:The individual regular expressions work fine in regex101 but my BlockIgnores statement only ever matches the Lorem..elit bit, which appears in one line. Any tips what I am getting wrong?
Beta Was this translation helpful? Give feedback.
All reactions