Markdown 转 RedNote(小红书)图片卡片
"Convert Markdown articles into RedNote (小红书/Xiaohongshu) style image cards. Use when: generating social media images from markdown, creating rednote posts, converting blog posts to card-style images for rednote, xiaohongshu, 小红书, 图片卡片."
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 4 AI agents
- Lifetime updates included
Description
--- name: md-to-rednote description: "Convert Markdown articles into RedNote (小红书/Xiaohongshu) style image cards. Use when: generating social media images from markdown, creating rednote posts, converting blog posts to card-style images for rednote, xiaohongshu, 小红书, 图片卡片." argument-hint: "Provide the path to a Markdown file to convert" --- # Markdown 转 RedNote(小红书)图片卡片 ## 功能 将 Markdown 格式的文章自动拆分并渲染为多张 RedNote(小红书)风格的图片卡片(1080×1440),可直接用于发布。 支持特性: - 基于像素高度的智能分页,内容密度均匀 - 标题保护机制(标题不会孤零零出现在页底) - 手动分页标记 `<!-- pagebreak -->` - 8 套配色主题 - 超过图片数量上限时自动缩小字号适配 - 任务列表(`- [x]`/`- [ ]`)渲染为复选框样式 - Emoji 完整支持 - 数学公式(LaTeX)支持 ## 使用场景 - 将博客文章、学习笔记转为 RedNote 图文笔记 - 将技术文档转为易读的卡片式图片 - 批量生成统一风格的社交媒体内容图 ## 使用方法 ```bash python .github/skills/md-to-rednote/scripts/convert.py <markdown_file> [--output <dir>] [--theme <name>] [--max-images <n>] ``` 参数说明: - `markdown_file`:输入的 Markdown 文件路径 - `--output, -o`:输出目录(默认:markdown 文件同目录下的 `<文件名>_cards/`) - `--theme, -t`:配色主题(默认:warm) - `--max-images, -m`:最大图片数量,超过会自动缩小字号(默认:18) ### 可选主题 - `warm` — 暖橙色调(默认) - `cool` — 冷蓝色调 - `green` — 清新绿色调 - `dark` — 暗色主题 - `xiaohongshu` — RedNote 经典粉红 - `zhihu` — 知乎蓝 - `notion` — Notion 简约风 - `douyin` — 抖音暗色 ## 依赖 - Python 3.10+ - markdown-it-py - jinja2 - playwright(需安装 Chromium:`playwright install chromium`) ## 参考资源 - [转换脚本](./scripts/convert.py) - [封面模板](./assets/templates/cover.html) - [正文模板](./assets/templates/content.html)
Security Status
Scanned
Passed automated security checks
Related AI Tools
More Grow Business tools you might like
Linear
FreeManaging Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows.
codex-collab
FreeUse when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.
Rails Upgrade Analyzer
FreeAnalyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.
Asta MCP — Academic Paper Search
FreeDomain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.
Hand Drawn Diagrams
FreeCreate hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.
Move Code Quality Checker
FreeAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working