preview
它能做什么
这个技能把 Markdown 或 LaTeX 文档转换为 HTML 或 PDF 文件以供审阅。适合希望查看或分享已完成文档的写作者和研究人员。
适用场景
- ✓你想把写好的报告以网页形式预览的时候。
- ✓你需要把 Markdown 或 LaTeX 文档导出为 PDF 的时候。
- ✓你想在分享前检查排版后文档的样子的时候。
技能链接
https://github.com/Companion-Inc/feynman/blob/main/skills/preview/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我的研究摘要 Markdown 文件转换为 PDF 和一个我可以打开的 HTML 预览。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能对你的文档运行 pandoc,生成 HTML 或 PDF 文件。原始的 Markdown 或 LaTeX 文件仍然是主要版本。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Preview
Render Markdown or LaTeX artifacts with pandoc through the shell. feynman setup preview checks for pandoc, and feynman doctor reports whether it is available.
pandoc outputs/<slug>.md -s -o outputs/<slug>.html # HTML
pandoc outputs/<slug>.md -o outputs/<slug>.pdf # PDF (needs a LaTeX engine)
open outputs/<slug>.html # macOS; xdg-open on Linux
Rendered HTML and PDF files are previews; the Markdown artifact stays canonical. If pandoc or a LaTeX engine is missing, say so and leave the Markdown artifact as the deliverable.
常见问题
我需要安装什么?
这个技能需要 pandoc,生成 PDF 时还需要 LaTeX 引擎。
如果没有 pandoc 怎么办?
这个技能会说明这一点,并把 Markdown 文件作为交付物保留。
哪个文件是原件?
Markdown 或 LaTeX 文件是原件,HTML 和 PDF 文件只是预览。
详情
作者的原始描述
Render Markdown or LaTeX research artifacts to HTML or PDF with pandoc. Use when the user wants to review a written artifact, export a report, or view a rendered document.
repo: Companion-Inc/feynman
热度
- GitHub 星标
- 10k
- 排名
- #12029
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …