---
name: php186-skill-46840
description: "将 Markdown 表格渲染为 PNG 图片，发送表格时直接渲染为图片而非原始 Markdown 文本。"
---

# MD Table Image

## 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.
