import { Marked } from "https://deno.land/x/lunchbox@v1.0.2/src/markdown.ts";
const { Marked } = Marked;
import { Marked } from "https://deno.land/x/lunchbox@v1.0.2/src/markdown.ts";
const { Marked } = Marked;
Methods
getDefaults(): marked.MarkedOptions
Gets the original marked default options.
parse(src: string, callback: (error: any, parseResult: string) => void): void
Compiles markdown to HTML.
parse(src: string, options: marked.MarkedOptions & { async: true; }): Promise<string>
Compiles markdown to HTML asynchronously.
parse(src: string, options?: marked.MarkedOptions): string
Compiles markdown to HTML synchronously.
parse(): void
src: string,
options: marked.MarkedOptions,
callback: (error: any, parseResult: string) => void,
Compiles markdown to HTML synchronously.
parseInline(src: string, options?: marked.MarkedOptions): string
Compiles markdown to HTML without enclosing p
tag.
setOptions(options: marked.MarkedOptions): Marked
Sets the default options.
use(...extensions: marked.MarkedExtension[]): void
Use Extension
walkTokens(tokens: marked.Token[] | marked.TokensList, callback: (token: marked.Token) => void): Marked
Methods
getDefaults(): marked.MarkedOptions
Gets the original marked default options.
parse(src: string, callback: (error: any, parseResult: string) => void): void
Compiles markdown to HTML.
parse(src: string, options: marked.MarkedOptions & { async: true; }): Promise<string>
Compiles markdown to HTML asynchronously.
parse(src: string, options?: marked.MarkedOptions): string
Compiles markdown to HTML synchronously.
parse(): void
src: string,
options: marked.MarkedOptions,
callback: (error: any, parseResult: string) => void,
Compiles markdown to HTML synchronously.
parseInline(src: string, options?: marked.MarkedOptions): string
Compiles markdown to HTML without enclosing p
tag.
setOptions(options: marked.MarkedOptions): Marked
Sets the default options.
use(...extensions: marked.MarkedExtension[]): void
Use Extension
walkTokens(tokens: marked.Token[] | marked.TokensList, callback: (token: marked.Token) => void): Marked
import { Marked } from "https://deno.land/x/lunchbox@v1.0.2/src/markdown.ts";
const { Marked } = Marked;