# replace()

Replace this node in the tree with *new_node*.

Usage

[Source](https://github.com/posit-dev/multimark/blob/main/src/multimark/_node.py#L434-L442)

``` python
replace(new_node)
```
