360 Secure SkillHub
360 安全技能中心

MD Table Image

核心功能是将Markdown内容(尤其表格)渲染为带样式的PNG图片,支持标题、自定义宽度、暗黑主题等配置。典型场景为聊天中发送表格,替代原始Markdown文本。输入可直接传内容或管道输入,通过命令行参数设置输出路径等,最终生成指定PNG图片。

kirorab
kirorab
热度 65.09
最近更新 2026-05-17 12:35:48
分类:效率依赖:代码执行应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add md-table-image
Metadata
name
md-table-image
description
Render markdown tables as PNG images. Use whenever you need to send a table in chat — render it as an image instead of raw markdown text.
metadata
{"clawdbot":{"emoji":"📊","requires":{"bins":["node"]}}}

MD Table Image

Renders markdown (especially tables) into a styled PNG image.

Usage

node {baseDir}/scripts/render.mjs "markdown content" -o /path/to/output.png

Or pipe markdown in:

echo "| A | B |\n|---|---|\n| 1 | 2 |" | node {baseDir}/scripts/render.mjs -o /path/to/output.png

Options

  • -o <path>: Output PNG path (default: /tmp/table.png)
  • --title <text>: Optional title above the table
  • --width <px>: Viewport width (default: 800)
  • --dark: Dark theme

When to Use

Always use this skill when sending tables to chat. Render the table as an image and send the image instead of raw markdown.