mdq

Parse and query Markdown documents like JSON using jq-style syntax

brewmacoslinux
Try with needOr install directly
Source

About

Like jq but for Markdown

Commands

mdq

Examples

Extract all headings from a Markdown file$ mdq '.headings' document.md
Query code blocks with specific language$ mdq '.code_blocks[] | select(.language == "python")' file.md
Extract links from Markdown content$ mdq '.links[] | {text, url}' document.md