Parser

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

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 ../../node_modules/@types/unist../../node_modules/@types/unist

Parameters

ParameterType
documentstring
fileVFile

Returns

Tree

Defined in

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