Convert Markdown To HTML And PDF - Markdown和HTML、PDF互转
CLAWHUB · Unverified
Markdown 与 HTML 互转,并支持 Markdown 转 PDF。当用户说:把这篇 MD 转成 HTML、导出 PDF,或类似文档格式转换时,使用本技能。 Skill: Convert Markdown To HTML And PDF - Markdown和HTML、PDF互转 Owner: jisuapi Summary: Markdown 与 HTML 互转,并支持 Markdown 转 PDF。当用户说:把这篇 MD 转成 HTML、导出 PDF,或类似文档格式转换时,使用本技能。 Tags: latest:1.0.5 Version history: v1.0.5 | 2026-04-03T09:29:54.963Z | user Version 1.0.5 - Updated skill name and description for improved clarity and discoverability. - Added detailed section about 极速数据 (JisuAPI) and its capabilities. - No code cha
- 62
- Rank
- 84
- Safety
- 1.4k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.4K downloadsadoption · Oct 10, 2026
- Latest release
- 1.0.5release · Apr 3, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.5release
Version 1.0.5 - Updated skill name and description for improved clarity and discoverability. - Added detailed section about 极速数据 (JisuAPI) and its capabilities. - No code changes; documentation and metadata update only.
Observed Apr 3, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s174fh1b14sn7vkvbqwsdn0xtd83gz5h:md2html- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-md2html/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
20,523 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: "Convert Markdown To HTML And PDF - Markdown和HTML、PDF互转"
description: Markdown 与 HTML 互转,并支持 Markdown 转 PDF。当用户说:把这篇 MD 转成 HTML、导出 PDF,或类似文档格式转换时,使用本技能。
metadata: { "openclaw": { "emoji": "📄", "requires": { "bins": ["python3"] } } }
---
# Markdown / HTML 互转与 PDF
本地技能,无需 API Key。支持:
- **Markdown → HTML**:完整独立页面(含基础样式)
- **Markdown → PDF**:以 base64 返回,便于保存或下发
- **HTML → Markdown**:将网页或 HTML 片段转为可编辑的 Markdown
如需结构化数据(天气、股票、黄金、车系、菜谱等),可搭配 **极速数据**(官网:[https://www.jisuapi.com/](https://www.jisuapi.com/))的 API 使用:用极速数据拉取数据,再用本技能将结果整理成 Markdown 或导出为 HTML/PDF 报告。
## 依赖安装
```bash
pip install markdown xhtml2pdf html2text
```
## 脚本路径
脚本文件:`skills/md2html/md2html.py`
## 使用方式
### 1. Markdown → HTML
从**文件**或**内容**转 HTML,可选 `title`:
```bash
python3 skills/md2html/md2html.py html '{"path":"README.md"}'
python3 skills/md2html/md2html.py html '{"content":"# 标题\n\n段落。","title":"我的文档"}'
```
返回:`{"html": "<!DOCTYPE html>..."}`
### 2. Markdown → PDF
从**文件**或**内容**转 PDF,返回 base64:
```bash
python3 skills/md2html/md2html.py pdf '{"path":"README.md"}'
python3 skills/md2html/md2html.py pdf '{"content":"# Hello\n\nWorld.","title":"Report"}'
```
返回:`{"pdf_base64": "JVBERi0xLjQKJ..."}`。解码保存示例:
`python3 skills/md2html/md2html.py pdf '{"path":"a.md"}' | jq -r '.pdf_base64' | base64 -d > out.pdf`
### 3. HTML → Markdown
从**文件**或**内容**将 HTML 转为 Markdown:
```bash
python3 skills/md2html/md2html.py html2md '{"path":"page.html"}'
python3 skills/md2html/md2html.py html2md '{"content":"<h1>标题</h1><p>段落</p>"}'
```
返回:`{"markdown": "# 标题\n\n段落"}`
### 4. 请求参数说明
| 字段名 | 类型 | 必填 | 说明 |
|----------|--------|------|------|
| path | string | 二选一 | 本地文件路径(.md / .html 等) |
| content | string | 二选一 | 原始文本(Markdown 或 HTML) |
| title | string | 否 | 仅 html/pdf 使用,默认 "Document" |
`path` 与 `content` 至少提供一个;同时存在时优先使用 `path`。
## 错误返回
- 未提供输入:`{"error": "input_error", "message": "Either 'path' or 'content' is required"}`
- 文件不存在:`{"error": "input_error", "message": "File not found: ..."}`
- 缺少依赖:`{"error": "missing_dependency", "message": "Install: pip install ..."}`
- PDF 生成失败:`{"error": "pdf_error", "message": "..."}`
## 推荐用法
1. 用户要求「把这段 Markdown 转成 HTML/PDF」或「把这段 HTML 转成 Markdown」。
2. 代理根据需求调用 `html`、`pdf` 或 `html2md`,从返回的 `html`、`pdf_base64`、`markdown` 中取结果展示或保存。
3. 若内容来自极速数据等 API,可先组好 Markdown,再调用本技能生成 HTML/PDF 报告供用户下载。
## 关于极速数据
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令
- **位置服务**:基站查询,经纬度地址转换,坐标系转换
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。_meta.json
{
"ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
"slug": "md2html",
"version": "1.0.5",
"publishedAt": 1775208594963
}skill-card.md
## Description: Markdown 与 HTML 互转,并支持 Markdown 转 PDF。当用户说:把这篇 MD 转成 HTML、导出 PDF,或类似文档格式转换时,使用本技能。 This skill is ready for commercial/non-commercial use. ## Publisher: [jisuapi](https://clawhub.ai/user/jisuapi) ### License/Terms of Use: MIT-0 ## Use Case: Developers and agents use this skill to convert Markdown into standalone HTML or base64-encoded PDF output, and to convert HTML files or snippets back into editable Markdown. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Crafted document inputs or paths could read unintended local files or produce active generated content. Mitigation: Use only trusted documents and paths, avoid attacker-supplied project folders, symlinks, Markdown, HTML, or titles, and render generated HTML/PDF in an isolated viewer. Risk: The conversion flow depends on path handling, title handling, HTML rendering, and Python package behavior. Mitigation: Prefer a hardened release that resolves real paths under the project root, rejects symlinks, escapes titles, sanitizes HTML, and pins dependencies. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/jisuapi/skills/md2html) - [Publisher profile](https://clawhub.ai/user/jisuapi) - [JisuAPI website](https://www.jisuapi.com/) ## Skill Output: **Output Type(s):** [Text, Markdown, Code, Shell commands] **Output Format:** [JSON responses containing HTML, Markdown, or base64-encoded PDF content] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires python3 and optional Python packages markdown, xhtml2pdf, and html2text for conversion commands.] ## Skill Version(s): 1.0.5 (source: release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-jisuapi-md2html. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Convert Markdown To HTML And PDF - Markdown和HTML、PDF互转. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-jisuapi-md2html, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/jisuapi/skills/md2html",
"sourceUrl": "https://clawhub.ai/jisuapi/skills/md2html",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:53:25.348Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-md2html/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-md2html/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T15:53:25.348Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.4K downloads",
"href": "https://clawhub.ai/jisuapi/md2html",
"sourceUrl": "https://clawhub.ai/jisuapi/md2html",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:53:25.348Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.5",
"href": "https://clawhub.ai/jisuapi/md2html",
"sourceUrl": "https://clawhub.ai/jisuapi/md2html",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-03T09:29:54.963Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-md2html/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-md2html/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.5",
"description": "Version 1.0.5 - Updated skill name and description for improved clarity and discoverability. - Added detailed section about 极速数据 (JisuAPI) and its capabilities. - No code changes; documentation and metadata update only.",
"href": "https://clawhub.ai/jisuapi/md2html",
"sourceUrl": "https://clawhub.ai/jisuapi/md2html",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-03T09:29:54.963Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-jisuapi-md2html/run-check
