import { Marked } from "https://deno.land/x/gfm@0.6.0/deps.ts";
const { Lexer } = Marked;
Methods
blockTokens(src: string, tokens?: Token[]): Token[]
Lexing
blockTokens(src: string, tokens?: TokensList): TokensList
inline(src: string, tokens?: Token[]): Token[]
inlineTokens(src: string, tokens?: Token[]): Token[]
Lexing/Compiling
lex(src: string): TokensList
Preprocessing
Static Properties
readonly
rules: { block: { normal: { blockquote: RegExp; code: RegExp; def: RegExp; fences: RegExp; heading: RegExp; hr: RegExp; html: RegExp; lheading: RegExp; list: RegExp; newline: RegExp; paragraph: RegExp; table: RegExp; text: RegExp; }; gfm: Record< | "code"
| "blockquote"
| "hr"
| "html"
| "table"
| "text"
| "heading"
| "list"
| "paragraph"
| "def"
| "fences"
| "lheading"
| "newline"
| "code"
| "blockquote"
| "hr"
| "html"
| "table"
| "text"
| "heading"
| "list"
| "paragraph"
| "def"
| "fences"
| "lheading"
| "newline"
| "link"
| "code"
| "url"
| "br"
| "del"
| "text"
| "escape"
| "tag"
| "reflink"
| "autolink"
| "nolink"
| "_backpedal"
| "anyPunctuation"
| "blockSkip"
| "emStrongLDelim"
| "emStrongRDelimAst"
| "emStrongRDelimUnd"
| "punctuation"
| "reflinkSearch"
| "link"
| "code"
| "url"
| "br"
| "del"
| "text"
| "escape"
| "tag"
| "reflink"
| "autolink"
| "nolink"
| "_backpedal"
| "anyPunctuation"
| "blockSkip"
| "emStrongLDelim"
| "emStrongRDelimAst"
| "emStrongRDelimUnd"
| "punctuation"
| "reflinkSearch"
| "link"
| "code"
| "url"
| "br"
| "del"
| "text"
| "escape"
| "tag"
| "reflink"
| "autolink"
| "nolink"
| "_backpedal"
| "anyPunctuation"
| "blockSkip"
| "emStrongLDelim"
| "emStrongRDelimAst"
| "emStrongRDelimUnd"
| "punctuation"
| "reflinkSearch"
Expose Rules