Expand description
Styling module for markdown-to-pdf conversion.
This module provides styling configuration for converting markdown elements to PDF, including fonts, text styles, margins and alignments. The styling system supports customization through a TOML configuration file, allowing control over properties like font size, colors, spacing, alignment and text decorations for each element type.
The styling configuration can be loaded from a TOML file or created programmatically. Each element type (headings, text, emphasis, code blocks etc.) can have its own style settings. The styling is applied during the PDF generation process to create properly formatted output.
Font handling is done through embedded assets, with support for different font weights and styles. The styling system integrates with the PDF generation pipeline to ensure consistent formatting throughout the document.
Structs§
- Basic
Text Style - Basic text styling properties that can be applied to any text element.
- Margins
- Margins configuration in points.
- Mermaid
Config - Configuration for Mermaid rendering used by the Mermaid element.
- Style
Match - Main style configuration for mapping markdown elements to PDF styles.
- SvgImage
Config
Enums§
- SvgHeight
- SVG height configuration options.
- SvgWidth
- SVG image configuration for controlling SVG rendering in PDF.
- Text
Alignment - Text alignment options for PDF elements.