diff --git a/plugins/mdx.ts b/plugins/mdx.ts index 5c705a5c..229af0c1 100644 --- a/plugins/mdx.ts +++ b/plugins/mdx.ts @@ -10,6 +10,10 @@ export interface Options { /** List of extensions this plugin applies to */ extensions?: string[]; + /** List of recma plugins to use */ + // deno-lint-ignore no-explicit-any + recmaPlugins?: any[]; + /** * List of remark plugins to use * @default `[remarkGfm]` @@ -73,6 +77,7 @@ export class MDXEngine implements Engine { jsx: true, format: "mdx", outputFormat: "function-body", + recmaPlugins: this.options.recmaPlugins, remarkPlugins: this.options.remarkPlugins, rehypePlugins: this.options.rehypePlugins, });