- What is this?
- When should I use this?
What is this?
This package is a utility that creates a TipTap tree.
When should I use this?
You can use this project when you want to turn hast into a TipTap node tree for renderHTML.
npm install hast-util-to-tiptap
This package exports the identifier
There is no default export.
Turn a hast tree into a DOM tree.
namespace to use to create elements (
Called when a hast node was transformed into a DOM node
(HastNode, TipTapTree) => void?, optional).
This package is fully typed with TypeScript.
It exports the additional type
Projects maintained by the unified collective are compatible with all maintained versions of Node.js. As of now, that is Node.js 17.3.0. Our projects sometimes work with older versions, but this is not guaranteed.
hast-util-to-dom— original repo
hast-util-sanitize— sanitize hast nodes
hast-util-to-html— serialize as HTML
hast-util-from-dom— create a hast tree from a DOM tree
This project has a [code of conduct][coc]. By interacting with this repository, organisation, or community you agree to abide by its terms.