document-exporter

Convert Markdown files to PDF, HTML, and DOCX with embedded assets.

8|1|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/officebeats/beats-pm-kit --skill document-exporter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-exporter
Source: https://github.com/officebeats/beats-pm-kit/tree/main/.agent/skills/document-exporter
Command: npx skills add https://github.com/officebeats/beats-pm-kit --skill document-exporter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill automates the conversion of standard Markdown documents into various high-fidelity output formats, including PDF, HTML, and DOCX, while ensuring embedded assets like images are correctly included.

Core Features & Use Cases

  • Markdown to HTML Conversion: Generates a self-contained HTML file with base64 encoded images, preserving the original document's structure and visual elements.
  • HTML to PDF Conversion: Utilizes Headless Chrome to create a PDF from the generated HTML, maintaining layout and embedded assets.
  • Use Case: Convert a project proposal written in Markdown into a professional-looking PDF document suitable for client presentations or a shareable HTML file for web viewing.

Quick Start

Use the document-exporter skill to convert the markdown file located at '/path/to/your/document.md' into a PDF file named '/path/to/your/document.pdf'.

Frequently Asked Questions about document-exporter

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

FAQPage Schema
How do I convert Markdown to PDF with embedded images?

To convert Markdown to PDF with embedded images, the document-exporter skill first generates a self-contained HTML file with base64 encoded images, then uses Headless Chrome to render the HTML into a high-fidelity PDF document.

Can I convert Markdown to DOCX for report generation?

Yes, you can convert Markdown to DOCX for report generation. The document-exporter skill automates the transformation of standard Markdown files into DOCX format, ensuring that embedded assets like images are correctly included in the output.

Do I need Python and Headless Chrome to render Markdown to HTML?

Yes, you need Python scripts to perform the Markdown-to-HTML conversion and Headless Chrome to handle the HTML-to-PDF rendering. These dependencies are required to execute the conversion workflows.

What is the best way to export Markdown to a self-contained HTML file?

The best way to export Markdown to a self-contained HTML file is using a conversion skill that preserves the original document structure and encodes images as base64, ensuring the resulting HTML file is fully portable and self-contained.

Does Markdown to HTML conversion preserve the original document structure and visual elements?

Yes, Markdown to HTML conversion preserves the original document structure and visual elements. The process generates a self-contained HTML file with base64 encoded images to maintain the fidelity of your embedded assets.