Skip to content

Commit

Permalink
Merge pull request #521 from lumeland/feat/mdx-recma-plugins
Browse files Browse the repository at this point in the history
feat(mdx): support recma plugins
  • Loading branch information
oscarotero authored Dec 5, 2023
2 parents 421c399 + b872e05 commit 41f8c62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]`
Expand Down Expand Up @@ -73,6 +77,7 @@ export class MDXEngine implements Engine<string | { toString(): string }> {
jsx: true,
format: "mdx",
outputFormat: "function-body",
recmaPlugins: this.options.recmaPlugins,
remarkPlugins: this.options.remarkPlugins,
rehypePlugins: this.options.rehypePlugins,
});
Expand Down

0 comments on commit 41f8c62

Please sign in to comment.