Intro
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 summarises the what and why of unified
- guide
- welcome
- introduction
Use unified
Guide that delves into transforming Markdown to HTML
- guide
- use
- transform
- remark
- rehype
Using plugins
Guide that shows how to use plugins and presets
- guide
Syntax trees in TypeScript
Guide that shows how to use types to work with syntax trees
- guide
- typescript
- unist
- node
- mdast
- hast
- xast
Intro to syntax trees
Guide that shows the basics of syntax trees (ASTs)
- guide
Create an editor
Guide that shows how to create a fancy app ✨
- guide
- editor
- dingus
Create a plugin
Guide that shows how to create a (retext) plugin
- guide
- plugin
- retext
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
- unist
- tree
- traverse
- walk
- visit
Find a node
How to find a node in any unist syntax tree
- recipe
- node
- tree
- traverse
- walk
- find
Support tables in remark
How to support GitHub-style tables in remark (or react-markdown)
- recipe
- remark
- plugin
- gfm
- github
- table
HTML and remark
How to use remark to turn markdown into HTML, and to allow embedded HTML inside markdown
- recipe
- remark
- html
- plugin
- markdown
- html
- parse
Remove a node
How to remove nodes in any unist tree
- recipe
- node
- tree
- remove
- delete
- traverse
- walk
Build a syntax tree
How to build content with syntax trees
- recipe
- unist
- mdast
- hast
- xast
Tree traversal with TypeScript
How to do tree traversal in TypeScript
- recipe
- typescript
- unist
- tree
- traverse
Narrow nodes in TypeScript
How to narrow generic `Node` to specific syntax types
- recipe
- typescript
- unist
- node
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.