MdxCompile
compile of @mdx-js/mdx, or a function with its shape.
compile of @mdx-js/mdx, or a function with its shape.
Import#
ts
import type { MdxCompile } from "@shadow-js/vite/mdx";
Signature#
ts
type MdxCompile = (
file: { readonly value: string; readonly path: string },
options: MdxCompileOptions,
) => Promise<MdxOutput>