Comments (4)
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:
\sPlone\s
\sVolto\s
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.
from vale.
Thanks for the suggestion. In accept.txt
, I tried replacing:
Plone
Volto
with
\sPlone\s
\sVolto\s
but that generated over 600 additional errors. Here's example source and result:
- `mywebsite.com-volto` starts the Node.js process that's responsible for Volto {term}`server-side rendering`.
57:75 error Did you really mean 'Volto'? Vale.Spelling
It appears that this kind of regular expression is not supported in our custom accept.txt
. It supports Plone[a-z]{4}
and accepts Plonetest
.
Aha! This worked:
-{0,1}plone-{0,1}
-{0,1}vlone-{0,1}
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?
from vale.
but that generated over 600 additional errors. Here's example source and result ...
Ah, it likely "solved" the issue with Vale.Terms
but caused another one with Vale.Spelling
.
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.
from vale.
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.
from vale.
Related Issues (20)
- Cannot get IgnoredClasses to work HOT 1
- Feature Request: Expand the list of supported scopes HOT 1
- Existence with tokens seems to fail at catching angle brackets in raw scope HOT 1
- Multiple `raw` Tokens Break Rule HOT 1
- Beginning/End of Line Does Not Work in Regex Patterns HOT 1
- Hyphenated words in exceptions list still being flagged as errors HOT 3
- [Question] Is Vale's scope-awareness able to tell me under which scope a style-check has been found? HOT 1
- Support the Typst typesetting language
- Support for neorg
- Support SARIF output HOT 1
- Pulling `Vocab.zip` using `vale sync` removes all existing folders in my projects `styles/Vocab` HOT 2
- Rule that worked in 2.23 does not work in 2.27 HOT 1
- [Question] Vale Not Detecting Underscores ('_') in Token HOT 2
- Vale incorrectly detects issues inside <pre> tag ONLY if token first appears outside of <pre> tag HOT 3
- Vale counts words per sentence wrong, if one word contains a dot. This triggers 'try to keep sentence short (<30 words)' warning. HOT 5
- Question: how to ignore all words with underscores HOT 1
- Markdown: Link in image markup is linted HOT 3
- "Node.js" should not be rejected HOT 3
- Release as NPM package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vale.