# finish()

Finalize parsing and return the root Node of the AST.

Usage

[Source](https://github.com/posit-dev/multimark/blob/main/src/multimark/_parser.py#L126-L145)

``` python
finish()
```

After calling this method, no more text can be fed to the parser. The returned Node can be used for tree inspection or rendering.

## Returns

`Node`  
The root document node of the parsed AST.

## Raises

`ValueError`  
If the parser is closed.
