# yshavit/mdq

like jq but for Markdown: find specific elements in a md doc

Repository: https://github.com/yshavit/mdq
Canonical: https://ross.abutalabs.com/products/mdq
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: jq, markdown, querying, md
Last push: 2026-03-22T04:42:56+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 75, longevity 59
- inputs: {"age_days": 830, "days_push": 164, "days_rel": 164, "gap_med": 13, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1741, forks 19 (observed 2026-08-28T04:05:30.262511+00:00)

## What it is
mdq is a command-line tool that works like jq but for Markdown, letting you select and render specific elements in a Markdown document using a query syntax. It is written in Rust and distributed via Homebrew, Docker, and release binaries.

## Use cases
- find all uncompleted task list items in a markdown file
- extract specific sections from a markdown document
- query markdown like jq queries
- validate PR templates contain required checklist items
- extract all links from a markdown doc
- filter markdown headings and lists from scripts

## When to choose
- you need to programmatically inspect or extract parts of Markdown files in shell scripts or CI
- you want a jq-like query language instead of fragile regexes over Markdown
- you need a fast, self-contained binary for Markdown processing

## When to avoid
- you need to convert Markdown to other formats like HTML or PDF
- you need a Markdown editor or renderer rather than a selector
- you work with structured data formats like JSON or YAML rather than Markdown

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, search-engine, cli, developer-tools
- domain: developer-tools, documentation
- platform: cli, windows, cross-platform
- tags: markdown, jq-like, querying, rust, text-processing, command-line, macos, linux, docker

## Member repositories
- yshavit/mdq (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.262511+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-30T03:30:03.946109+00:00, confidence not recorded.
  - readme: https://github.com/yshavit/mdq (fetched 2026-08-28T04:05:30.262511+00:00, sha ce78ad2bd89a)
  - registry_crates: https://crates.io/api/v1/crates/mdq (fetched 2026-08-29T11:07:27.821823+00:00, sha b9d113e8fe4e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
