Function: useMdastNodeUpdater

useMdastNodeUpdater<T>(): (node: Partial<T>) => void

A hook that returns a function that can be used to update the mdast node. Use this in your custom editor components.

Type parameters

NameType
Textends RootContent

Returns

fn

▸ (node): void

Parameters
NameType
nodePartial<T>
Returns

void