macOS
brew install mdqlocal Homebrew formula metadata
安装
brew install mdqlocal Homebrew formula metadata
nix profile install nixpkgs#mdqnixpkgs package indexes · pkgs/by-name/md/mdq/package.nix · 来源: api.github.com
scoop install main/mdqScoop official bucket manifest trees · bucket/mdq.json · 来源: api.github.com
winget install --id Whiteknight.Mdq -eWindows Package Manager source index · Whiteknight.Mdq · 来源: cdn.winget.microsoft.com
概览
Like jq but for Markdown
历史
mdq is a Rust command-line and library project that describes itself as `jq for Markdown`: it selects Markdown elements using a query language that mirrors Markdown syntax.
The public repository was created on 2024-05-25. Its README frames the project around a recurring automation problem: GitHub pull requests, issues, and templates are Markdown documents, and teams often need structured checks that are less brittle than regular expressions.
The project publishes both a CLI and a Rust library. The README points library users to crates.io and docs.rs, while CLI users can install through Homebrew, Docker images, release binaries, or Cargo.
Official installation instructions list Homebrew, Docker Hub, GitHub release binaries, workflow build artifacts, and `cargo install --git`; the input package-manager facts also show availability through Homebrew, Nix, Scoop, and Winget.
GitHub repository metadata showed rapid attention for a young Markdown utility, with more than a thousand stars and a public wiki, Pages site, and discussions enabled by 2026.
mdq reads Markdown from stdin or files and applies filters such as heading selectors, list selectors, task-list selectors, link selectors, table selectors, front matter selectors, and regex text matches.
The README examples show CI and workflow uses: checking that a PR checklist item is completed, extracting ticket links from a PR body, and reducing large Markdown tables to selected rows or columns.
mdq is significant because it treats Markdown as queryable structured data, filling a niche between `grep` and full parsers. For package users, the appeal is familiar jq-like composition applied to README files, issue bodies, changelogs, runbooks, and generated documentation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mdq | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/yshavit/mdq
安装元数据
| 软件包键 | brew:mdq |
|---|---|
| 版本 | 0.10.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mdq |
| 主页 | https://github.com/yshavit/mdq |
| 仓库 | https://github.com/yshavit/mdq |
| 上游文档 | https://github.com/yshavit/mdq#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/yshavit/mdq/archive/refs/tags/v0.10.0.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mdq |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mdq
nix profile install nixpkgs#mdqmain/mdq
scoop install main/mdqWhiteknight.Mdq
winget install --id Whiteknight.Mdq -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.