Skip to main content
Module

x/markdown/mod.ts>BlockLexer

Deno Markdown module forked from https://github.com/ts-stack/markdown/tree/bb47aa8e625e89e6aa84f49a98536a3089dee831
Latest
class BlockLexer
Re-export
import { BlockLexer } from "https://deno.land/x/markdown@v2.0.0/mod.ts";

Constructors

new
BlockLexer(staticThis: BlockLexer, options?: object)

Type Parameters

T extends BlockLexer

Properties

protected
frontmatter: Obj
protected
hasRulesGfm: boolean
protected
hasRulesTables: boolean
protected
options: MarkedOptions
protected
tokens: Token[]

Methods

protected
getTokens(
src: string,
top?: boolean,
isBlockQuote?: boolean,
): LexerReturns

Lexing.

protected
setRules()

Static Properties

protected
rulesBase: RulesBlockBase
protected
rulesGfm: RulesBlockGfm

GFM Block Grammar.

protected
rulesTables: RulesBlockTables

GFM + Tables Block Grammar.

simpleRules: RegExp[]

Static Methods

lex(
src: string,
options?: MarkedOptions,
top?: boolean,
isBlockQuote?: boolean,
): LexerReturns

Accepts Markdown text and returns object with tokens and links.