← Back to Skills Marketplace
mengwuzhi

Markdown to PDF (Styled)

by mengwuzhi · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
705
Downloads
0
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install markdown-to-pdf-styled
Description
Convert Markdown files to styled PDFs using pandoc and wkhtmltopdf with built-in or custom CSS style options.
Usage Guidance
This skill appears to be what it claims: a simple Markdown→PDF converter using pandoc and wkhtmltopdf. Before installing/using it: 1) ensure pandoc and wkhtmltopdf (and a POSIX shell) are installed—the package metadata does not list these binaries even though the docs and script require them; 2) be aware the script enables wkhtmltopdf's --enable-local-file-access so the PDF renderer can read local resources—avoid converting untrusted Markdown/CSS on sensitive systems or run in a sandbox; 3) if you need network isolation, note wkhtmltopdf can fetch remote resources referenced from your Markdown or CSS (fonts, images); 4) inspect any custom CSS you pass in (or bundled CSS) if you have stricter security requirements. Otherwise the skill contains no hidden network endpoints or credential requests.
Capability Analysis
Type: OpenClaw Skill Name: markdown-to-pdf-styled Version: 1.0.0 The skill is classified as suspicious due to a significant Local File Disclosure (LFD) and Server-Side Request Forgery (SSRF) vulnerability. The `scripts/md2pdf.sh` script explicitly enables `wkhtmltopdf`'s `--enable-local-file-access` option, as noted in `SKILL.md`. This allows the PDF generation process to access local files or make network requests based on content within the user-provided Markdown file or a custom CSS file, potentially leading to unauthorized data exposure or internal network probing.
Capability Assessment
Purpose & Capability
Name/description match the included files and script: the md2pdf.sh script and CSS assets implement Markdown→PDF conversion with style options. However, registry metadata lists no required binaries while SKILL.md and the script clearly require pandoc and wkhtmltopdf (and a POSIX shell). This is a metadata omission rather than malicious behavior.
Instruction Scope
SKILL.md instructs the agent to run the included bash script and to ensure pandoc/wkhtmltopdf are installed. The script only reads the provided input markdown, an output path, and a CSS file (either bundled or a user-specified absolute path). It does not exfiltrate data or call external endpoints itself. Note: the script passes --enable-local-file-access to wkhtmltopdf to allow loading local CSS/assets, which is necessary for the stated function but can enable local file reads by the PDF engine.
Install Mechanism
There is no install spec (instruction-only plus a script and assets). That minimizes install-time risk because nothing is downloaded or executed automatically beyond the provided script. The script is plain shell and the CSS files are static.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportionate to its purpose (local file conversion).
Persistence & Privilege
The skill is not always-enabled and does not request persistent system changes or modify other skills. It runs as an on-demand script using normal user privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install markdown-to-pdf-styled
  3. After installation, invoke the skill by name or use /markdown-to-pdf-styled
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始版本 - 使用 pandoc + wkhtmltopdf 转换 Markdown 为 PDF,支持多种样式模板(clean/modern/paper)
Metadata
Slug markdown-to-pdf-styled
Version 1.0.0
License
All-time Installs 4
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is Markdown to PDF (Styled)?

Convert Markdown files to styled PDFs using pandoc and wkhtmltopdf with built-in or custom CSS style options. It is an AI Agent Skill for Claude Code / OpenClaw, with 705 downloads so far.

How do I install Markdown to PDF (Styled)?

Run "/install markdown-to-pdf-styled" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Markdown to PDF (Styled) free?

Yes, Markdown to PDF (Styled) is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Markdown to PDF (Styled) support?

Markdown to PDF (Styled) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Markdown to PDF (Styled)?

It is built and maintained by mengwuzhi (@mengwuzhi); the current version is v1.0.0.

💬 Comments