Skip to content
Back to skills

Md To Image

ASecurity

Convert Markdown tables to PNG images for Telegram, WhatsApp, and other chat interfaces that don't support table formatting.

  • 57 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 31, 2026
toolsbashnodegit

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill md-to-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Md To Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Md To Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-md-to-image/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-md-to-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: md-to-image
description: Convert Markdown tables to PNG images for Telegram, WhatsApp, and other chat interfaces that don't support table formatting.
homepage: https://github.com/openclaw/openclaw
metadata:
  {
    "openclaw":
      {
        "emoji": "📊",
        "requires": { "bins": ["node"], "nodeModules": ["puppeteer-core"] },
        "install":
          [
            {
              "id": "npm",
              "kind": "npm",
              "path": "~/.openclaw/workspace/md-to-image",
              "label": "Install md-to-image dependencies",
            },
          ],
      },
  }
---

# md-to-image

Convert Markdown tables to PNG images for chat interfaces that don't support table formatting (like Telegram).

## When to use (trigger phrases)

Use this skill immediately when:

- Any response contains a markdown table destined for Telegram or WhatsApp
- User says "use table to image" or "convert this table"
- Output has `| column | column |` pattern and channel is Telegram

## Quick start

```bash
# Convert markdown file to PNG
node ~/.openclaw/workspace/md-to-image/md-to-image.js input.md output.png --scale=2

# Convert from stdin
echo "| A | B |\n|---|---|" | node md-to-image.js - output.png
```

## Auto-apply

This skill auto-applies at 95% confidence when:
- Channel is Telegram or WhatsApp
- Content contains `| table |` pattern
- 2+ rows, 2+ columns
- Data is informational (not ASCII art)

## Options

| Option | Default | Description |
|--------|---------|-------------|
| `--scale` | 2 | Image scale (2x for retina) |
| `--theme` | calm | Color theme: calm, dark, colorful |
| `--width` | auto | Table width in pixels |

## Color themes

- **calm** (default): Black/gray headers, minimal
- **dark**: Dark mode friendly
- **colorful**: Blue/purple gradient headers

## How it works

1. Parses markdown table syntax
2. Generates HTML with CSS styling
3. Renders via Puppeteer (headless Chrome)
4. Captures screenshot of rendered table
5. Returns PNG file path

## Configuration

Add to agent config for auto-convert:

```json
{
  "skills": {
    "md-to-image": {
      "enabled": true,
      "autoConvert": ["telegram", "whatsapp"],
      "scale": 2,
      "theme": "calm"
    }
  }
}
```

## Requirements

- Node.js 16+
- npm
- Puppeteer-core (auto-installed)
- ~100MB disk space for Chromium

## Location

Converter script: `~/.openclaw/workspace/md-to-image/md-to-image.js`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.