← 返回 Skills 市场
Markdown to PDF Converter (v2.0)
作者
tianxingleo
· GitHub ↗
· v2.0.0
1014
总下载
2
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install md2pdf-converter
功能描述
Offline Markdown to PDF converter with full Unicode support using Pandoc + WeasyPrint + local emoji cache. Converts Markdown documents to professional PDFs w...
安全使用建议
This skill appears to do what it claims (offline Markdown→PDF with Twemoji) and does not request credentials, but review the scripts before running them. Key points to consider:
- The main script downloads ~150MB from GitHub and writes to ~/.cache/md2pdf; confirm you are OK with that download and storage location.
- There is a hard-coded absolute path in md2pdf-local.sh that calls the Python script at /home/ltx/.openclaw/…; on your machine this will likely fail or point to an unexpected location. Edit the script to call the bundled script via a relative path (e.g., use the script's directory or $PWD) before running.
- Inspect the scripts for any unwanted commands (they run wget, tar, mv, rm -rf on the cache dir and invoke pandoc/weasyprint). Run them in a sandbox/container or review the code if you have sensitive files or restrictive policies.
- Ensure required tools (pandoc, weasyprint, python3, wget) and fonts are installed; run font installation steps only if you trust them.
If you want to proceed, either fix the absolute path in md2pdf-local.sh to a relative path or run the generate_emoji_mapping.py manually from the skill folder so the mapping is created with the expected ~/.cache/md2pdf/emojis content. If you need higher assurance, run the first run inside an isolated environment (container or VM).
功能分析
Type: OpenClaw Skill
Name: md2pdf-converter
Version: 2.0.0
The skill is designed to convert Markdown to PDF with emoji support, using Pandoc, WeasyPrint, and local Twemoji assets. It is classified as 'suspicious' due to the `scripts/md2pdf-local.sh` script executing external commands (`pandoc`, `weasyprint`) with user-provided input filenames. While the filenames are quoted, this pattern is a common vulnerability vector for shell injection or arbitrary code execution if the underlying tools have flaws. Additionally, the script uses a hardcoded absolute path (`/home/ltx/.openclaw/workspace/skills/md2pdf-converter/scripts/generate_emoji_mapping.py`) to invoke a Python script, which is a robustness vulnerability. There is no evidence of intentional malicious behavior like data exfiltration, persistence, or prompt injection against the agent.
能力评估
Purpose & Capability
Name/description match the contents: scripts and instructions implement Pandoc + WeasyPrint conversion, local Twemoji download, and a mapping generator. Declared dependencies (Pandoc, WeasyPrint, Python, wget) are appropriate for the stated goal.
Instruction Scope
Runtime instructions stay within the converter's scope (download Twemoji to ~/.cache/md2pdf, generate emoji mapping, run Pandoc + Lua filter, render with WeasyPrint). They do not attempt to read unrelated system files or exfiltrate data. However md2pdf-local.sh calls the Python mapping script via a hard-coded absolute path (/home/ltx/.openclaw/workspace/skills/md2pdf-converter/scripts/generate_emoji_mapping.py) instead of a relative or $SCRIPT_DIR-based path — this is an inconsistency that will likely break on other systems and suggests packaging/authoring oversight.
Install Mechanism
No install spec is provided (instruction-only), so nothing is silently downloaded during installation. The script does download a Twemoji tarball from an official GitHub URL at first run — this is expected and the source is legitimate. No obscure or shortener URLs are used.
Credentials
The skill requests no environment variables or credentials. Files are written to ~/.cache/md2pdf and temporary directories only, which is proportionate to an offline caching converter. No unrelated credentials or config paths are requested.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and has no elevated persistence. It will create a local cache directory (~/.cache/md2pdf) and write files there, which is expected for its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install md2pdf-converter - 安装完成后,直接呼叫该 Skill 的名称或使用
/md2pdf-converter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Switch to Twemoji 14.0.0 (complete version) with 3660 colorful emojis including all variants. Add Python script to generate emoji mapping table. Fix black-and-white emoji display issue. Support all emoji variants (skin tones, hair styles, regional flags, etc.). Improve mapping accuracy with pre-generated lookup table.
v1.0.0
Initial release: Offline Markdown to PDF converter with full Unicode support, colorful emojis, and Chinese fonts. Uses Pandoc + WeasyPrint with local emoji cache from npmmirror.com.
元数据
常见问题
Markdown to PDF Converter (v2.0) 是什么?
Offline Markdown to PDF converter with full Unicode support using Pandoc + WeasyPrint + local emoji cache. Converts Markdown documents to professional PDFs w... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1014 次。
如何安装 Markdown to PDF Converter (v2.0)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install md2pdf-converter」即可一键安装,无需额外配置。
Markdown to PDF Converter (v2.0) 是免费的吗?
是的,Markdown to PDF Converter (v2.0) 完全免费(开源免费),可自由下载、安装和使用。
Markdown to PDF Converter (v2.0) 支持哪些平台?
Markdown to PDF Converter (v2.0) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Markdown to PDF Converter (v2.0)?
由 tianxingleo(@tianxingleo)开发并维护,当前版本 v2.0.0。
推荐 Skills