Lightlines
By jimliu

baoyu-markdown-to-html

jimliu

Turn Markdown into polished, WeChat-ready HTML.

Markdown conversion

What it does

Converts Markdown files into styled HTML optimized for WeChat Official Account and other platforms.

When to use it

Use when the user requests Markdown-to-HTML conversion or styled HTML output from Markdown.

How to use it

Give it a Markdown file and conversion options; it writes styled HTML beside the input and returns JSON metadata.

What you provide

  • a Markdown file
  • Your files

Access · 2

This skill

EXTEND.md configuration files

Read

Reads conversion preferences

headless Chrome

Execute

Renders Mermaid diagrams

What you need · 4

The main path requires either bun or npx to run the bundled TypeScript entry point.

The scripts depend on the baoyu-md package for Markdown parsing and rendering.

The scripts depend on baoyu-chrome-cdp for Mermaid rendering through Chrome CDP.

A Chromium-based browser enables Mermaid PNG rendering; without one, Mermaid falls back to preformatted output and conversion still succeeds.


About this skill

Visibility
Public
Repository
jimliu/baoyu-skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
5