# 使用 Homebrew 安装 mdv

查看 mdv 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mdv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mdv
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mdv
- **软件包管理器:** Homebrew
- **版本:** 1.7.5
- **来源摘要:** Styled terminal markdown viewer
- **主页:** <https://github.com/axiros/terminal_markdown_viewer>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mdv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.7.5
## 项目历史与用法

mdv, from the terminal_markdown_viewer repository, is a Python styled Markdown viewer for terminals. It targets remote editing, browserless environments, CLI help output, and colored reading of Markdown in 256-color terminals.

### 项目历史

The public GitHub repository was created on 2015-07-12. The README explains the motivation as avoiding browser context switches while editing Markdown remotely, especially in larger mkdocs projects or constrained hop-machine environments.

The project began as a proof-of-concept hack, and the README is candid that complex Markdown and inline HTML are outside its strongest use cases. Over time it added themes, tables, admonitions, file and directory monitoring, source-code highlighting, library usage, and Python 3 support.

### 采用历史

The README documents `pip install mdv`, a MacPorts entry, and FreeBSD package availability. The input package-manager facts show Homebrew packaging for the same executable name.

GitHub metadata showed sustained attention for a terminal Markdown renderer, with more than a thousand stars and over a hundred forks by 2026.

### 使用方式

CLI users run `mdv [OPTIONS] MDFILE` to render Markdown with themes, link styles, source-code highlighting, width control, file monitoring, directory monitoring, and optional HTML output.

The README also documents inline library use from Python, environment variables `MDV_THEME` and `MDV_CODE_THEME`, YAML CLI-argument defaults in `$HOME/.mdv`, and executable Python customization in `$HOME/.mdv.py`.

### 为什么软件包爱好者会关心

mdv matters in package-manager culture as one of the older terminal Markdown viewers that made README rendering, colored CLI docs, and remote-server Markdown inspection feasible without Node, Pandoc, or a browser.

Its README's own alternatives section places it among JavaScript terminal renderers, Pandoc-to-browser or man-page pipelines, and vimcat, while arguing for a Python package that handles tables, admonitions, and themes in a terminal.

### 时间线

- 2015: Public GitHub repository created.
- 2016: README update noted pip installation, setup.py-based dependencies, light-theme work, stdin support, wrapping fixes, and test additions.
- 2018: README update noted merged PRs, Python 3 support, header numbering, and simpler config handling.
- 2023: README update noted release 1.7.5 and a mailto link fix.

### Related projects

- The README discusses msee, ansidown, ansimd, nd, Pandoc with terminal browsers or groff/man output, and vimcat as alternatives.
- The README credits Pygments, tabulate, and Python Markdown as supporting projects.

### 来源

- <https://api.github.com/repos/axiros/terminal_markdown_viewer>
- <https://github.com/axiros/terminal_markdown_viewer#readme>
- source_facts.homepage
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.mdv, ~/.mdv.py

## Combined YAML source

View the package source record on GitHub. [combined/mdv.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mdv.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
