360 Secure SkillHub
360 安全技能中心

MD Table Image

读取 Markdown 文本(命令行参数或标准输入),通过 Node 脚本配合无头浏览器渲染为 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.