返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

markdown-canvas

Convert markdown files to beautiful HTML pages suitable for Canvas display or browser viewing. Use when user asks to render, visualize, display, or share markdown files (.md) in a visual format. Triggers include phrases like "render xxx.md", "canvas display xxx.md", "visualize markdown", "make xxx.md pretty", "share xxx.md as HTML".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
346
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

markdown-canvas

# Markdown Canvas Renderer Convert markdown files into beautiful, shareable HTML pages with zero external dependencies. ## Quick Start When a user wants to render a markdown file: 1. **Run the conversion script**: ```bash python3 scripts/convert.py <path/to/file.md> ``` 2. **Open in browser** (if no Canvas node available): ```bash open <output.html> ``` 3. **Or push to Canvas** (if node paired): ```bash canvas present file://<output.html> ``` ## Usage Examples ### Basic conversion ```bash # Converts ai-landscape-2026.md → ai-landscape-2026.html python3 scripts/convert.py ai-landscape-2026.md ``` ### Custom output path ```bash python3 scripts/convert.py input.md -o /path/to/output.html ``` ### Custom page title ```bash python3 scripts/convert.py notes.md -t "My Research Notes" ``` ## Supported Markdown Features The converter handles: - **Headers** (# through ######) - **Bold** (`**text**` or `__text__`) - **Italic** (`*text*` or `_text_`) - **Code blocks** (```language ... ```) - **Inline code** (`code`) - **Links** (`[text](url)`) - **Lists** (unordered: `- `, `* `, `+ `) - **Horizontal rules** (`---`, `***`, `___`) ## Design Philosophy **Token efficiency**: Template is pre-built; only markdown content flows through the context window. **Zero dependencies**: Pure Python + self-contained HTML template with embedded CSS. **Progressive enhancement**: Works offline, no CDN required, renders instantly. ## Workflow 1. User requests markdown rendering 2. Run `scripts/convert.py` on their file 3. Script reads `assets/template.html` 4. Script converts markdown → HTML 5. Script injects HTML into template 6. Output saved alongside source (or custom path) 7. Open in browser OR push to Canvas ## Token Cost Analysis Per conversion: - Read SKILL.md: ~500 tokens (first time only) - Execute script: ~100 tokens - Report result: ~50 tokens **Total: ~650 tokens** vs ~8000 tokens for generating full HTML each time. ## Output Location By default, output is saved next to the input file: - `notes.md` → `notes.html` - `/path/to/doc.md` → `/path/to/doc.html` Use `-o` flag to specify custom location.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 markdown-canvas-1776279543 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 markdown-canvas-1776279543 技能

通过命令行安装

skillhub install markdown-canvas-1776279543

下载

⬇ 下载 markdown-canvas v1.0.2(免费)

文件大小: 7.1 KB | 发布时间: 2026-4-16 15:55

v1.0.2 最新 2026-4-16 15:55
Add GitHub repository and homepage links

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部