md-to-rednote

Converts Markdown files into RedNote-style 1080x1440 PNG image cards with LaTeX, tables, emojis, and task lists via Playwright pagination.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/DjTaNg-404/md-to-rednote --skill md-to-rednote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-rednote
Source: https://github.com/DjTaNg-404/md-to-rednote/tree/main
Command: npx skills add https://github.com/DjTaNg-404/md-to-rednote --skill md-to-rednote

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown-it-py, jinja2, playwright, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

Convert Markdown articles into RedNote (小红书) style image cards automatically, so you don’t have to manually redesign pagination, typography, and page layouts.

Core Features & Use Cases

  • Smart pixel-height pagination: splits content by actual rendered height for consistent density
  • LaTeX math rendering: supports inline and block formulas via KaTeX
  • Multiple themes & typography scaling: offers 8 theme palettes and auto-shrinks font size when the page/image limit is exceeded
  • RedNote publishing format: generates 1080×1440 PNGs with cover + page footer (page number and progress bar)
  • Markdown-friendly rendering: supports task lists, emojis, tables, headings, lists, code blocks, and blockquotes

Quick Start

Upload your markdown file to the skill and ask it to convert it using the warm theme, producing RedNote-ready 1080×1440 PNG cards.

Frequently Asked Questions about md-to-rednote

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert markdown to Xiaohongshu image cards automatically?

To convert markdown to Xiaohongshu image cards, you provide a markdown file path to trigger YAML-configured Jinja2 template rendering and Playwright pagination, generating 1080x1440 PNG cards.

Does markdown to RedNote conversion support LaTeX math formulas and tables?

Yes, markdown to RedNote conversion supports LaTeX math formulas, tables, task lists, emojis, code blocks, and blockquotes, rendering them natively within the generated 1080x1440 image cards.

How does markdown pagination work for RedNote publishing?

Markdown pagination for RedNote publishing works by using Playwright to measure the actual rendered height of the content, splitting it into consistent density pages without manual typography adjustments.

Can I change themes when generating Xiaohongshu image cards from markdown?

Yes, you can change themes when generating Xiaohongshu image cards from markdown by selecting from 8 theme palettes, with automatic font size shrinking applied when the page or image limit is exceeded.

What do I need to render markdown into RedNote paginated PNGs?

To render markdown into RedNote paginated PNGs, you need a local environment with markdown-it-py, jinja2, and playwright dependencies installed, along with a YAML-configured invocation setup.

Why does my markdown content overflow the 1080x1440 RedNote card format?

Markdown content overflows the 1080x1440 RedNote card format when rendered height exceeds page limits, but the skill applies max-image font scaling to automatically shrink text and maintain consistent layout density.