The Working Approach
Baoyu Markdown to HTML converts an article into styled HTML with inline CSS, optimized for WeChat Official Account workflows. It supports theme and typography choices alongside code highlighting, footnotes, alerts and diagram content. The converted HTML is saved beside the Markdown source, and an existing HTML output receives a timestamped backup.
The skill also handles publishing details that affect the finished article. The first heading is removed by default unless keep-title is enabled, and external links become bottom citations only when explicitly requested. Mermaid diagrams are rendered through a browser to cached PNG assets, with a text fallback if rendering is unavailable.
Expected Deliverables
- A themed HTML file with inline CSS.
- Generated or referenced image information, including Mermaid PNG assets when rendering succeeds.
- A structured result containing the HTML path and any backup path.
From Brief to Review
- 01Resolve the article presentation
Read explicit theme choices and EXTEND.md preferences. If the input contains CJK text and baoyu-format-markdown is available, offer that separate formatting step before conversion.
- 02Choose citation and title behavior
Keep external-link citations off unless requested. Decide whether the leading heading should remain in the article body.
- 03Convert content and diagrams
Run the bundled main.ts converter through Bun or its documented npx fallback with the selected presentation options. Mermaid uses browser-based PNG rendering and a cache when available.
- 04Inspect the publishing output
Open the HTML, check diagrams and report the result paths. Distinguish successfully generated images from fallback Mermaid markup.