velite
velite copied to clipboard
Showing errors from `remarkPlugins` in CLI
I tried adding spellchecking plugin to velite config, following https://github.com/orgs/remarkjs/discussions/965 and ended up with:
import dictionary from 'dictionary-pl';
import remarkRetext from 'remark-retext';
import retextLatin from 'retext-latin';
import retextSpell from 'retext-spell';
import { unified } from 'unified';
import { defineConfig } from 'velite';
export default defineConfig({
collections: { ... },
mdx: {
remarkPlugins: [
[
remarkRetext,
unified()
.use(retextLatin)
.use(retextSpell, dictionary)
]
]
}
});
From what I understand, it does check spelling, however velite does not show warnings in console and does not terminate with strict option enabled.
Is there a way to confirm that this is something on velite's site and would it be possible to enable such setup in velite?