• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • MarkdownToPngConverter
  • MarkdownToPngConverter Class

    Converts Markdown/text files to PNG images. More...

    Header: #include <MarkdownToPngConverter>
    Since: 1.0

    Detailed Description

    MarkdownToPngConverter renders markdown content to PNG images using Qt's QTextDocument for rendering. Designed primarily for converting ASCII art diagrams in documentation to images.

    The rendering pipeline: 1. Read markdown file 2. Convert to HTML using libmarkdown (Hoedown) 3. Wrap with CSS styling for monospace rendering 4. Render using QTextDocument to QImage 5. Save as PNG with configured DPI

    See also Markdown and WidgetCaptureTool.