Module styling

Module styling 

Source
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§

BasicTextStyle
Basic text styling properties that can be applied to any text element.
Margins
Margins configuration in points.
StyleMatch
Main style configuration for mapping markdown elements to PDF styles.

Enums§

TextAlignment
Text alignment options for PDF elements.