Home

Add-ons

  addOns: AddOn[];

Apply any custom transformations to the MDAST.

/**
 * Transformer interface that must be implemented by addons.
 *
 * @param root root of the MDX AST
 * @param file VFile including frontmatter at `data.astro.frontmatter`
 */
export type AddOn = (root: Root, file: VFile) => Promise<void | Root>;