SuperAPI AI 工具集

markdown-converter

写作与研究

查看项目

更新于 10-16 03:12

技能介绍

用途:将 Markdown 文档转换为 HTML、PDF 及其他格式,适合渲染文档、生成带样式的页面或批量处理 Markdown 文件。

主要能力:支持语法高亮、表格和自定义 CSS;可输出 HTML,也可在依赖满足时输出 PDF(PDF 需要 weasyprint);支持一次转换多个文件并按目录输出。

使用方式:通过 /markdown 命令触发。示例命令保持原样:

python scripts/markdown_converter.py README.md --format html --output README.html python scripts/markdown_converter.py code.md --format html --highlight python scripts/markdown_converter.py doc.md --format html --css style.css python scripts/markdown_converter.py doc.md --format pdf --output doc.pdf python scripts/markdown_converter.py *.md --format html --output-dir ./html/

适用场景:文档渲染、生成静态 HTML 页面、带高亮的代码文档、需要套用自定义样式的转换,以及批量把多个 Markdown 文件转成 HTML。

限制:PDF 输出依赖 weasyprint;可用性与兼容性为 Codex ✅、Claude Code ✅;其他环境、安装细节、具体性能或额外格式支持暂未提供。