Skip to content
@syntax-tree

syntax-tree

πŸŒ²πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ²πŸŒ³πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŽ„πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸ»πŸŒ³πŸŒ³πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ²πŸŽ„πŸŒ²πŸŒ³πŸŒ²πŸŒ²πŸŒ³πŸŒ³πŸŒ³

syntax-tree

syntax-tree is an organization that contains 100+ projects that deal with syntax trees based on unist. These trees typically deal with content: markdown (mdast), HTML (hast), natural language (nlcst), XML (xast), but also JavaScript (esast).

  • to learn unist, see its readme
  • you can use syntax trees without having to deal with them, by using unified and its plugins

unified

syntax-tree is part of the unified collective, which brings together organisations that work with content as structured data.

Get involved

This community has a code of conduct. You must follow it when interacting with the community.

Pinned Loading

  1. unist unist Public

    Universal Syntax Tree used by @unifiedjs

    1k 30

  2. mdast mdast Public

    Markdown Abstract Syntax Tree format

    1.5k 50

  3. hast hast Public

    Hypertext Abstract Syntax Tree format

    914 29

  4. nlcst nlcst Public

    Natural Language Concrete Syntax Tree format

    233 11

  5. xast xast Public

    Extensible Abstract Syntax Tree

    94 3

  6. esast esast Public

    ECMAScript Abstract Syntax Tree format

    59 2

Repositories

Showing 10 of 140 repositories
  • mdast-util-directive Public

    mdast extension to parse and serialize generic directives (`:cite[smith04]`)

    syntax-tree/mdast-util-directive's past year of commit activity
    JavaScript 20 MIT 11 0 0 Updated Oct 30, 2026
  • hast-util-to-jsx-runtime Public

    hast utility to transform to preact, react, solid, svelte, vue, etc

    syntax-tree/hast-util-to-jsx-runtime's past year of commit activity
    JavaScript 90 MIT 7 0 0 Updated Oct 30, 2026
  • xastscript Public

    utility to create xast trees

    syntax-tree/xastscript's past year of commit activity
    JavaScript 13 MIT 4 0 0 Updated Oct 30, 2026
  • hastscript Public

    utility to create hast trees

    syntax-tree/hastscript's past year of commit activity
    JavaScript 200 MIT 14 0 0 Updated Oct 30, 2026
  • hast-util-from-parse5 Public

    utility to transform Parse5’s AST to hast

    syntax-tree/hast-util-from-parse5's past year of commit activity
    JavaScript 17 MIT 10 0 0 Updated Oct 29, 2026
  • hast-util-to-html Public

    utility to serialize hast to HTML

    syntax-tree/hast-util-to-html's past year of commit activity
    JavaScript 119 MIT 24 0 0 Updated Oct 29, 2026
  • mdast-util-to-markdown Public

    mdast utility to serialize markdown

    syntax-tree/mdast-util-to-markdown's past year of commit activity
    JavaScript 143 MIT 37 0 0 Updated Oct 27, 2026
  • hast-util-to-text Public

    utility to get the plain-text value of a node according to the `innerText` algorithm

    syntax-tree/hast-util-to-text's past year of commit activity
    JavaScript 25 MIT 4 0 0 Updated Oct 25, 2026
  • hast-util-find-and-replace Public

    utility to find and replace text in a hast tree

    syntax-tree/hast-util-find-and-replace's past year of commit activity
    JavaScript 9 MIT 2 0 0 Updated Oct 24, 2026
  • mdast-util-find-and-replace Public

    mdast utility to find and replace text in a tree

    syntax-tree/mdast-util-find-and-replace's past year of commit activity
    JavaScript 14 MIT 6 0 0 Updated Oct 24, 2026
⌂ Proxy