Parser

Parser<Tree> = (document, file) => Tree

Defined in: node_modules/unified/lib/index.d.ts:921

A parser handles the parsing of text to a syntax tree.

It is used in the parse phase and is called with a string and VFile of the document to parse. It must return the syntax tree representation of the given file (Node).

Type Parameters

Type ParameterDefault type
Tree extends NodeNode

Parameters

ParameterType
documentstring
fileVFile

Returns

Tree