Skip to main content
Module

x/gfm/mod.ts>Marked.marked

Server-side GitHub Flavored Markdown rendering for Deno
Latest
namespace Marked.marked
import { Marked } from "https://deno.land/x/gfm@0.6.0/mod.ts";
const { marked } = Marked;
function Marked.marked
import { Marked } from "https://deno.land/x/gfm@0.6.0/mod.ts";
const { marked } = Marked;

Compiles markdown to HTML asynchronously.

Parameters

src: string

String of markdown source to be compiled

options: MarkedOptions & { async: true; }

Hash of options, having async: true

Returns

Promise<string>

Promise of string of compiled HTML

Compiles markdown to HTML.

Parameters

src: string

String of markdown source to be compiled

optional
options: MarkedOptions

Optional hash of options

Returns

string | Promise<string>

String of compiled HTML. Wil be a Promise of string if async is set to true by any extensions.