Check if a word is italicized #940
-
I have certain words that I never want italicized. I had this working in an older version of Vale using an existence rule with a scope of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The extends: existence
message: "'%s' shouldn't be italicized."
scope: raw
nonword: true
tokens:
- '\*(?:word1|word2)\*' |
Beta Was this translation helpful? Give feedback.
The
raw
scope allows you to write rules that are directly applied to the unprocessed file contents, meaning you can target markup syntax itself. So, for example, you'd do something like this: