velite icon indicating copy to clipboard operation
velite copied to clipboard

Showing errors from `remarkPlugins` in CLI

Open burtek opened this issue 1 year ago • 0 comments

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?

burtek avatar Nov 28 '24 10:11 burtek