Skip to content
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

Showing errors from remarkPlugins in CLI #261

Open
burtek opened this issue Nov 28, 2024 · 0 comments
Open

Showing errors from remarkPlugins in CLI #261

burtek opened this issue Nov 28, 2024 · 0 comments

Comments

@burtek
Copy link

burtek commented Nov 28, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant