unified is an interface for parsing, inspecting, transforming, and serializing content through syntax trees. And it’s hundreds of building blocks for working on those trees.
This section of our website includes several articles ranging from recipes that complete small, specific tasks, to guides that walk through how to complete bigger tasks.
Guides
Learn unified through articles, each telling a story, that walks through how to complete a certain task
Intro to unified
Guide that summarizes the what and why of unified
- guide
- introduction
- welcome
Use unified
Guide that delves into transforming markdown to HTML
- guide
- rehype
- remark
- transform
- use
Create an editor
Guide that shows how to create a fancy app ✨
- guide
- dingus
- editor
- playground
Syntax trees in TypeScript
Guide that shows how to use types to work with syntax trees
- guide
- hast
- mdast
- nlcst
- node
- typescript
- types
- unist
- xast
Using plugins
How to use plugins and presets
- guide
- plugin
- preset
- unified
- use
unified in the browser
How to use unified in the browser
- guide
- browser
- dom
- esbuild
- hast
- mdast
- nlcst
- rehype
- remark
- retext
- unified
- web
Create a retext plugin
Guide that shows how to create a retext plugin
- guide
- nlcst
- plugin
- retext
Create a remark plugin
Guide that shows how to create a remark plugin
- guide
- mdast
- plugin
- remark
Create a rehype plugin
Guide that shows how to create a rehype plugin
- guide
- hast
- plugin
- rehype
Intro to syntax trees
Guide that shows the basics of syntax trees (ASTs)
- guide
- syntax tree
- unist
Publish a plugin
Guide that shows how to share a plugin with the world.
- guide
- plugin
- rehype
- remark
- retext
- unified
- publish
Recipes
Learn unified through byte-sized articles, that stand on their own, explaining how to complete a small, specific, focussed task
Tree traversal
How to do tree traversal (also known as walking or visiting a tree)
- recipe
- traverse
- tree
- unist
- visit
- walk
Find a node
How to find a node in any unist syntax tree
- recipe
- find
- node
- traverse
- tree
- walk
Support tables in remark
How to support GitHub-style tables in remark (or react-markdown)
- recipe
- gfm
- github
- plugin
- remark
- table
HTML and remark
How to use remark to turn markdown into HTML, and to allow embedded HTML inside markdown
- recipe
- html
- markdown
- parse
- plugin
- remark
Remove a node
How to remove nodes in any unist tree
- recipe
- delete
- node
- remove
- traverse
- tree
- walk
Build a syntax tree
How to build content with syntax trees
- recipe
- esast
- hast
- mdast
- nlcst
- unist
- xast
Tree traversal with TypeScript
How to do tree traversal in TypeScript
- recipe
- traverse
- tree
- typescript
- unist
Narrow nodes in TypeScript
How to narrow generic `Node` to specific syntax types
- recipe
- node
- typescript
- unist
Explore
The readmes of our projects and packages, available through the Explore section of our website (or on GitHub and npm), describe the APIs and more in detail.