Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aleph_plugin_mdx/deps.ts>compile

The MDX 2 Plugin for Aleph.js
Latest
function compile
import { compile } from "https://deno.land/x/aleph_plugin_mdx@v1.3.0-beta.1/deps.ts";

Compile MDX to JS.

Parameters

vfileCompatible: VFileCompatible

MDX document to parse (string, Buffer, vfile, anything that can be given to vfile).

optional
compileOptions: CompileOptions | undefined

Returns

Promise<VFile>