# syntax-tree/mdast

Markdown Abstract Syntax Tree format

Repository: https://github.com/syntax-tree/mdast
Canonical: https://ross.abutalabs.com/products/mdast
Homepage: https://unifiedjs.com
License Family: other
Topics: markdown, ast, syntax-tree, unist
Last push: 2026-02-04T18:45:51+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 8, longevity 100
- inputs: {"age_days": 3905, "days_push": 210, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1469, forks 49 (observed 2026-08-28T04:04:48.990080+00:00)

## What it is
mdast is a specification for representing Markdown as an abstract syntax tree, extending the unist syntax tree format. It supports multiple Markdown flavors such as CommonMark and GitHub Flavored Markdown, with a rich ecosystem of JavaScript utilities.

## Use cases
- parse markdown into a syntax tree
- transform markdown documents programmatically
- represent CommonMark or GFM as structured data
- build markdown linting or analysis tools
- convert markdown to HTML or other formats
- write custom markdown extensions or plugins

## When to choose
- you need a standardized, well-specified AST for markdown
- you are building tools in the unified/remark ecosystem
- you need to inspect, transform, or generate markdown programmatically
- you want TypeScript types for markdown syntax trees

## When to avoid
- you just need to render markdown to HTML with no tree manipulation
- you need a parser for a non-markdown format
- you want a ready-made CLI rather than a specification and library ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: parsers, documentation, web-development, developer-tools
- platform: cross-platform
- tags: markdown, ast, unist, syntax-tree, specification, remark, unified, commonmark, gfm, nodejs, javascript

## Member repositories
- syntax-tree/mdast (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:48.990080+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:55.051131+00:00, confidence not recorded.
  - readme: https://github.com/syntax-tree/mdast (fetched 2026-08-28T04:04:48.990080+00:00, sha b1d8468c9f48)
  - homepage: https://unifiedjs.com (fetched 2026-08-29T11:43:21.639288+00:00, sha 0359e5fdf9c6)
  - site_page: https://unifiedjs.com/explore/release (fetched 2026-08-29T11:43:21.648371+00:00, sha 34c5baf82537)
- Data as of 2026-08-30T08:39:29.467469+00:00.
