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 Parameter | Default type |
|---|---|
Tree extends Node | Node |
| Parameter | Type |
|---|---|
document | string |
file | VFile |
Tree