md-render
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarkdown Renderer
Markdown 渲染工具
Render markdown files as beautiful dark-mode HTML and open them in the browser. Designed for viewing agent-generated documents (design docs, plans, reports).
将Markdown文件渲染为美观的深色模式HTML并在浏览器中打开。专为查看Agent生成的文档(设计文档、计划、报告)而设计。
Quick Reference
快速参考
| Situation | Action |
|---|---|
| User asks to render/preview markdown | Run |
| User wants HTML output saved | Run |
| User wants to customize styling | Edit |
| User asks to pipe markdown | |
| 场景 | 操作 |
|---|---|
| 用户要求渲染/预览Markdown | 运行 |
| 用户希望保存HTML输出 | 运行 |
| 用户想要自定义样式 | 编辑 |
| 用户要求管道传输Markdown | |
CLI Reference
CLI 参考
| Command | Description |
|---|---|
| Render and open in browser |
| Render from stdin |
| Save HTML to file |
| Generate HTML without opening browser |
| Use alternate config |
| Show usage |
Exit codes: 0 = success, 1 = error
| 命令 | 说明 |
|---|---|
| 渲染并在浏览器中打开 |
| 从标准输入渲染 |
| 将HTML保存到文件 |
| 生成HTML但不打开浏览器 |
| 使用备用配置 |
| 显示使用说明 |
退出代码: 0 = 成功,1 = 错误
Rendering Features
渲染特性
- Dark-mode aesthetic with configurable colors, fonts, and sizing
- Collapsible table of contents (inline and slide-out panel)
- Syntax-highlighted code blocks with copy-to-clipboard button
- Copy full markdown source button (top-right)
- Clickable heading anchors (hover to reveal)
- Mermaid diagram rendering (flowcharts, sequence diagrams, state diagrams, pie charts)
- Task list checkboxes, footnotes, ==highlights==, sub
script/super^script^ - Emoji shortcodes (:rocket: :white_check_mark:)
- Custom attributes via
{#id .class} - Responsive layout
- Self-contained HTML (mermaid uses CDN when enabled)
- 深色模式外观,支持配置颜色、字体和尺寸
- 可折叠目录(内联和滑出面板)
- 带复制到剪贴板按钮的语法高亮代码块
- 复制完整Markdown源文件按钮(右上角)
- 可点击的标题锚点(悬停显示)
- Mermaid图表渲染(流程图、序列图、状态图、饼图)
- 任务列表复选框、脚注、==高亮文本==、下
标/上^标^ - 表情符号短代码(:rocket: :white_check_mark:)
- 通过设置自定义属性
{#id .class} - 响应式布局
- 自包含HTML(启用Mermaid时使用CDN)
Configuration
配置
Config location:
~/.config/agent-skills/md-render/config.jsonCreated automatically on first run from defaults. Edit to customize:
- theme — colors, fonts, sizing, max-width
- features — toggle toc, syntax highlighting, heading anchors, mermaid, browser open
配置文件位置:
~/.config/agent-skills/md-render/config.json首次运行时会自动从默认值创建。编辑以自定义:
- theme — 颜色、字体、尺寸、最大宽度
- features — 切换目录、语法高亮、标题锚点、Mermaid、浏览器打开