diff --git a/src/module.ts b/src/module.ts index 342d847b1..ee1e78475 100644 --- a/src/module.ts +++ b/src/module.ts @@ -500,6 +500,11 @@ export default defineNuxtModule({ // Process markdown plugins, resolve paths contentContext.markdown = processMarkdownOptions(contentContext.markdown) + // Disable MDC plugin if user disabled it + if (options.markdown?.mdc === false) { + (contentContext.markdown.remarkPlugins as Record)['remark-mdc'] = undefined + } + const nuxtMDCOptions = { remarkPlugins: contentContext.markdown.remarkPlugins, rehypePlugins: contentContext.markdown.rehypePlugins,