经 AI Skill Hub 精选评估,终端Markdown渲染 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
流式Markdown渲染器,支持TUI命令行界面
终端Markdown渲染 是一款基于 Python 开发的开源工具,专注于 markdown、tui、cli 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
流式Markdown渲染器,支持TUI命令行界面
终端Markdown渲染 是一款基于 Python 开发的开源工具,专注于 markdown、tui、cli 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install render-markdown-terminal
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install render-markdown-terminal
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/day50-dev/render-markdown-terminal
cd render-markdown-terminal
pip install -e .
# 验证安装
python -c "import render_markdown_terminal; print('安装成功')"
# 命令行使用
render-markdown-terminal --help
# 基本用法
render-markdown-terminal input_file -o output_file
# Python 代码中调用
import render_markdown_terminal
# 示例
result = render_markdown_terminal.process("input")
print(result)
# render-markdown-terminal 配置文件示例(config.yml) app: name: "render-markdown-terminal" debug: false log_level: "INFO" # 运行时指定配置文件 render-markdown-terminal --config config.yml # 或通过环境变量配置 export RENDER_MARKDOWN_TERMINAL_API_KEY="your-key" export RENDER_MARKDOWN_TERMINAL_OUTPUT_DIR="./output"
<p align="center"> <img src=https://github.com/user-attachments/assets/0468eac0-2a00-4e98-82ca-09e6ac679357/> <br/> <a href=https://pypi.org/project/streamdown><img src=https://badge.fury.io/py/streamdown.svg/></a> <br/><strong>Terminal streaming markdown that rocks</strong>
</p>
The problem: Every terminal markdown renderer wants to capture your screen. You want one that just outputs formatted text without trying to hijack things into a full screen experience.
The solution: Streamdown, part of the DAY50 suite of open-source tools for AI workflows, is designed for the wide variety of markdown from various LLM models.
Beautify markdown from any terminal application, any source, in any context, in realtime.
As both a fast standards-company library and a powerful CLI, it supports standard piping and files as arguments like any normal pager but can also run as a wrapper so you retain full keyboard interactivity. Arrow keys, control, alt, all still work.
$ uv tool install streamdown
You can also use it in code as a library
sd = Streamdown()
sd.render(content)
sd.tidyup()
After the git clone least one of these should work, hopefully. it's using the modern uv pip tool but is also backwards compatible to the pip3 install -r requirements.txt flow.
$ pipx install -e . $ pip install -e . $ uv pip install -e .
Explore the rest of DA`/50. Feel free to follow us, there's some exciting stuff coming.
Do this
$ ./streamdown/sd.py tests/*md
The location it's stored is platform specific and can be seen with the -h flag. If this file does not exist upon first run, it will be created with default values.
Here are the sections:
[style]
Defines the base Hue (H), Saturation (S), and Value (V) from which all other palette colors are derived. This can also be specified at runtime via command line arguments. See below!
The default values are at the beginning of the source.
HSV: [ 0.0 - 1.0, 0.0 - 1.0, 0.0 - 1.0 ]Dark: Multipliers for background elements, code blocks.Grey: Multipliers for blockquote and thinkblock.Mid: Multipliers for inline code backgrounds, table headers.Symbol: Multipliers for list bullets, horizontal rules, links.Head: Multipliers for level 3 headers.Bright: Multipliers for level 2 headers.Margin (integer, default: 2): The left and right indent for the output.Width (integer, default: 0): Along with the Margin, Width specifies the base width of the content, which when set to 0, means use the terminal width. See #6 for more detailsPrettyPad (boolean, default: true): Uses a unicode vertical pad trick to add a half height background to code blocks. This makes copy/paste have artifacts. See #2. I like it on. But that's just mePrettyBroken (boolean, default: true): This will break the copy/paste assurance above. The output is much prettier, but it's also broken. So it's pretty broken. Works nicely with PrettyPad.ListIndent (integer, default: 2): This is the recursive indent for the list styles.Syntax (string, default native): This is the syntax highlighting theme which come via pygments.Example:
[style]
PrettyPad = true
PrettyBroken = true
HSV = [0.7, 0.5, 0.5]
Dark = { H = 1.0, S = 1.2, V = 0.25 } # Make dark elements less saturated and darker
Symbol = { H = 1.0, S = 1.8, V = 1.8 } # Make symbols more vibrant
[features]
Controls optional features: Timeout (float, default: 0.1): controls the select timeout for streaming. This usually doesn't have to be modified. Network (boolean, default: true): controls whether network calls are made (such as for the rendering of remote images). See #29 Images (boolean, default: true): controls whether images are rendered or not. CodeSpaces (boolean, default: true): Enables detection of code blocks indented with 4 spaces. Set to false to disable this detection method (triple-backtick blocks still work). Clipboard (boolean, default: true): Enables copying the last code block encountered to the system clipboard using OSC 52 escape sequences upon exit. Set to false to disable. Logging (boolean, default: false): Enables logging to tmpdir (/tmp/sd) of the raw markdown for debugging and bug reporting. The logging uses an emoji as a record separator so the actual streaming delays can be simulated and replayed. If you use the filename based invocation, that is to say, sd <filename>, this type of logging is always off. * Savebrace (boolean, default: true): Saves the code blocks of a conversation to the append file $TMP/sd/$UID/savebrace so you can fzf or whatever you want through it. See how it's used in DAY50's sidechat.
Example:
[features]
CodeSpaces = false
Clipboard = false
For instance, here is the latex plugin doing math inside a table:
It is designed for AI and can be used to do parser based sophisticated pipelines and routing, cracking open various monolithic AI solutions to permit them to integrate. Think of it as output level routing at the semantic level.
You can also just use it like a normal person.
流式Markdown渲染,支持TUI命令行界面,实用
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:终端Markdown渲染 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | render-markdown-terminal |
| 原始描述 | 开源AI工具:Streaming Markdown renderer for tui clis。⭐352 · Python |
| Topics | markdowntuiclipython |
| GitHub | https://github.com/day50-dev/render-markdown-terminal |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。