UNPKG

smarkdown

Version:

Markdown parser, simplicity and extensibility.

20 lines (19 loc) 625 B
import { BlockRenderer, Links, Options, Token } from './Interfaces'; export declare class Parser { private footnotes; private inlineLexer; private inlineTextLexer; private options; private renderer; private textOptions; private token; private tokens; blockRenderers: BlockRenderer[]; constructor(options?: Options); static parse(tokens: Token[], links: Links, options?: Options): string; parse(links: Links, tokens: Token[]): string; protected next(): Token; protected peek(): Token; protected parseText(): string; protected tok(): string; }