-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore MyST syntax labels #667
Comments
This is an issue because MyST is not one of Vale's supported formats. As a result, your options are limited (most of Vale's scope-related features will not work) but you could do this:
This will generally only flag instances that occur in a "prose-like" context. In any case, I'd say that your expectations when using Vale with unsupported formats should be fairly low when it comes to ignoring markup. |
Thanks for the suggestion. In
with
but that generated over 600 additional errors. Here's example source and result:
It appears that this kind of regular expression is not supported in our custom Aha! This worked:
There's more than one way to skin a regular expression! I am still concerned that neither of our earlier regexes worked. Should I keep this issue open or close it? |
Ah, it likely "solved" the issue with I would say that what we're doing here is generally a misuse of vocabulary files: they're designed to work with supported markup formats, not workaround false positives caused by unrecognized ones. The real solution here would be to add support for MyST, but I can't put a timetable on that. |
Thanks for the explanation. I'm happy to help bring MyST support to Vale to the best of my ability. A cursory look at support for reStructuredText as an example to adapt for MyST was over my head. |
Check for existing issues
Describe the feature
In my
accept.txt
, I have a regular expression that I expect to match labels in MyST markup. I also have proper nouns, such asPlone
andVolto
.accept.txt
Here is an example label.
Here is my regular expression demo:
https://regex101.com/r/MqBJoC/1
When proper nouns appear lower-cased in the labels, Vale returns errors.
If I remove the proper nouns from
accept.txt
, then the terms Volto and Plone are flagged as misspellings everywhere except in the labels. I also get the exact same result when I also remove the regular expression fromaccept.txt
.It seems that my only option is to use proper casing in labels. I would like to avoid the work of changing all of our MyST labels. Is this possible?
The text was updated successfully, but these errors were encountered: