Skip to main content
Module

x/aleph_plugin_mdx/deps.ts>compile

The MDX 2 Plugin for Aleph.js
Go to Latest
function compile
import { compile } from "https://deno.land/x/aleph_plugin_mdx@v1.0.0/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

Returns

Promise<VFile>