Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gfm/mod.ts>Marked.Instance.Marked

Server-side GitHub Flavored Markdown rendering for Deno
Go to Latest
class Marked.Instance.Marked
import { Marked } from "https://deno.land/x/gfm@0.3.0/mod.ts";
const { Marked } = Marked.Instance;

Constructors

new
Marked(...args: MarkedExtension[])

Properties

defaults: MarkedOptions
Hooks: _Hooks
lexer: _Lexer.lex
Lexer: _Lexer
options: (opt: MarkedOptions) => this
parse: (src: string, options?: MarkedOptions | undefined | null) => string | Promise<string>
parseInline: (src: string, options?: MarkedOptions | undefined | null) => string | Promise<string>
parser: _Parser.parse
Parser: _Parser
Renderer: _Renderer
TextRenderer: _TextRenderer
Tokenizer: _Tokenizer

Methods

setOptions(opt: MarkedOptions): this
use(...args: MarkedExtension[]): this
walkTokens(tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]): MaybePromise[]

Run callback for every token