搜索

PythonReactSEOPDF
OpenClaw

markdown-table-to-image

将 Markdown 表格转换为清晰图片。当用户说"表格看不清"、"生成图片"、"转成图片"时触发。

bg1avd0 来源安装数☆ 0 仓库 Starsv1.0.2

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install bg1avd/markdown-table-to-image

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Markdown 表格转图片 v1.0.1

流程

  1. 解析 Markdown 表格
  2. 生成 HTML(单元格内容居中对齐)
  3. 用 wkhtmltoimage 输出为图片

使用方式

# 从文本生成
node {baseDir}/scripts/md2img.js "| 列1 | 列2 |
|------|------|
| A | B |" output.png

# 指定宽度(默认900)
node {baseDir}/scripts/md2img.js "表格内容" output.png 1200

在 Agent 中使用

用户: 把这个表格转成图片

Agent:
1. 提取表格内容
2. node ~/.openclaw/workspace/skills/table-to-image/scripts/md2img.js "表格内容" /tmp/table.png
3. 发送图片给用户

输出

  • PNG 格式
  • 单元格内容居中对齐
  • 支持中英文

来源信息

Source
github
Repository
openclaw/skills
Path
skills/bg1avd/markdown-table-to-image
Version
1.0.2
Commit
660c52198b32e36fe4ec889c1bf68d89f190df98
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Markdown 表格转图片 v1.0.1

## 流程

1. 解析 Markdown 表格
2. 生成 HTML(单元格内容居中对齐)
3. 用 wkhtmltoimage 输出为图片

## 使用方式

```bash
# 从文本生成
node {baseDir}/scripts/md2img.js "| 列1 | 列2 |
|------|------|
| A | B |" output.png

# 指定宽度(默认900)
node {baseDir}/scripts/md2img.js "表格内容" output.png 1200
```

## 在 Agent 中使用

```
用户: 把这个表格转成图片

Agent:
1. 提取表格内容
2. node ~/.openclaw/workspace/skills/table-to-image/scripts/md2img.js "表格内容" /tmp/table.png
3. 发送图片给用户
```

## 输出

- PNG 格式
- 单元格内容居中对齐
- 支持中英文

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.