Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

compile

Compile MDX to JS.

function compile(vfileCompatible: VFileCompatible, compileOptions?: CompileOptions | null | undefined): Promise<VFile>;
§
compile(vfileCompatible: VFileCompatible, compileOptions?: CompileOptions | null | undefined): Promise<VFile>
[src]

§Parameters

§
vfileCompatible: VFileCompatible
[src]

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

§
compileOptions?: CompileOptions | null | undefined optional
[src]

§Return Type

§
Promise<VFile>
[src]

File.