syntax-tree
Grow your team on GitHub
GitHub is home to over 28 million developers working together. Join them to grow your own development teams, manage permissions, and collaborate on projects.
Sign up
Pinned repositories
Transform MDAST to HAST
Transform HAST to something else through a hyperscript DSL
Markdown Abstract Syntax Tree format
Transform HAST to NLCST
Hyperscript compatible DSL for creating virtual HAST trees
Hypertext Abstract Syntax Tree format, used in @rehypejs
TypeScript definitions for universal syntax tree
Universal Syntax Tree used by @unifiedjs
Utility to get the plain text content of a node
Find definition nodes in mdast nodes
HTML comments as ranges or markers in mdast
Utility to get the style of a heading
Make an MDAST tree compact
Parse a comment marker in mdast
Assert MDAST nodes
Index Unist nodes by property or computed key
Remove empty paragraphs from mdast tree
Make sure there is no more than a single top-level heading in the document
Helper for creating unist trees
Transform HAST to HTML
Add parent references to unist nodes
Sanitize HAST nodes
Search for patterns in an NLCST tree
Recursively walk over unist nodes, with ancestral information
Utility to recursively walk over Unist nodes
`querySelector`, `querySelectorAll`, and `matches` in HAST
Transform HAST to MDAST
Reparse a HAST tree
Transform Parse5βs AST to HAST
Check if a node is phrasing content