md-to-xhs-cards

Community

Turn Markdown into Xiaohongshu image cards.

Authorerafat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Convert Markdown content into deterministic Xiaohongshu image cards with deterministic layout, preserving content order and local image references.

Core Features & Use Cases

  • Deterministic rendering of headings, paragraphs, lists, quotes, code blocks, and images in source order.
  • Local image support and Obsidian embeds, with fallback handling for missing assets.
  • Output artifacts include card images and a manifest, with optional publish-to-Xiaohongshu workflow.

Quick Start

Run the renderer on a Markdown file to generate 3:4 Xiaohongshu cards by executing scripts/run_md_to_xhs_cards.sh /path/to/post.md

Dependency Matrix

Required Modules

pillow

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: md-to-xhs-cards
Download link: https://github.com/erafat/skills/archive/main.zip#md-to-xhs-cards

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.