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

x/gfm/deps.ts>Marked.Lexer._Lexer

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

Block Lexer

Constructors

new
_Lexer(options?: MarkedOptions)

Properties

private
inlineQueue
private
tokenizer
options: MarkedOptions
state: { inLink: boolean; inRawBlock: boolean; top: boolean; }
tokens: TokensList

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: Rules

Expose Rules

Static Methods

lex(src: string, options?: MarkedOptions): TokensList

Static Lex Method

lexInline(src: string, options?: MarkedOptions): Token[]

Static Lex Inline Method