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 Parameter | Default type |
---|---|
Tree extends ../../node_modules/@types/unist | ../../node_modules/@types/unist |
Parameter | Type |
---|---|
document | string |
file | VFile |
Tree
node_modules/unified/lib/index.d.ts:921