markdown-converter

Convert Markdown files to HTML or PDF with syntax highlighting and custom CSS.

84|15|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/AIDotNet/MoYuCode --skill markdown-converter-aidotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-converter
Source: https://github.com/AIDotNet/MoYuCode/tree/main/skills/tools/markdown-converter
Command: npx skills add https://github.com/AIDotNet/MoYuCode --skill markdown-converter-aidotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, pygments, weasyprint, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the conversion of Markdown files into various formats like HTML and PDF, simplifying documentation and content sharing.

Core Features & Use Cases

  • Format Conversion: Transform Markdown into HTML or PDF.
  • Syntax Highlighting: Renders code blocks with syntax highlighting for better readability.
  • Custom Styling: Allows integration of custom CSS for HTML output.
  • Use Case: Convert a project's README.md file into a professional-looking HTML document for a website or a PDF for easy distribution.

Quick Start

Convert the file named 'README.md' to HTML with syntax highlighting.

Frequently Asked Questions about markdown-converter

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

FAQPage Schema
How do I convert Markdown to PDF with syntax highlighting?

To convert Markdown to PDF with syntax highlighting, this Skill uses the 'markdown' and 'pygments' packages for rendering, and 'weasyprint' to generate the final PDF document from your source files.

Can I add custom CSS when converting Markdown to HTML?

Yes, you can integrate custom CSS when converting Markdown to HTML, allowing you to style documentation and web content directly from your Markdown source files for personalized output.

Do I need weasyprint to generate HTML from Markdown?

No, you do not need 'weasyprint' to generate HTML from Markdown, as it requires only the 'markdown' package for core conversion and 'pygments' for syntax highlighting; 'weasyprint' is optional for PDF generation.

What is the best way to generate a shareable PDF report from a README file?

The best way to generate a shareable PDF report from a README file is using this Skill to convert Markdown into PDF format, supporting syntax highlighting for professional-looking documentation distribution.

Does this Markdown converter support rendering code blocks for web content?

Yes, this Markdown converter supports rendering code blocks with syntax highlighting for web content, utilizing the 'pygments' package to ensure better readability in the generated HTML output.