No description
Find a file
2026-10-02 14:38:33 +08:00
skills/markdown-fit release v0.1.0 2026-10-02 14:38:33 +08:00
LICENSE release v0.1.0 2026-10-02 14:38:33 +08:00
MANIFEST.json release v0.1.0 2026-10-02 14:38:33 +08:00
package.json release v0.1.0 2026-10-02 14:38:33 +08:00
README.md release v0.1.0 2026-10-02 14:38:33 +08:00

markdown-fit

把 Markdown 排成终端可显示的定宽文本(CJK 对齐、去记号、上色),并按 cols×rows 切片

以 Pi package(技能形态)发布。技能本体在 skills/markdown-fit/。

  • 平台:macOS / Linux / Windows
  • 许可:GPL-3.0-or-later(全文见 LICENSE)

安装

pi install git:gitea.vhkd.top/pi-hub/markdown-fit.git@v0.1.0

装完 pi-skill list 能看到 markdown-fit,pi-skill markdown-fit check 会告诉还缺什么。

先准备什么

  • 用系统已有的东西即可,没有额外依赖。

常用命令

命令 说明
measure 只量不写:rows/cols/cells/max_line_cols(判断装不装得下先跑它)
render 渲染成定宽文本:默认写标准输出,--out 写文件
pages 按 cols×rows 切成 K 片(靠前铺满、余量留最后),写 part1..K 并回读每片行数

用法与对外契约见技能内的 SKILL.md 与 REFERENCE.md。