MarkdownTheme
data class MarkdownTheme(val baseTextStyle: <Error class: unknown class> = TextStyle(), val codeBackground: <Error class: unknown class> = PdfColor(0.95f, 0.95f, 0.95f), val linkColor: <Error class: unknown class> = PdfColor.Blue, val headingScales: List<Float> = listOf(2.0f, 1.6f, 1.3f, 1.15f, 1.05f, 1.0f), val blockSpacing: <Error class: unknown class> = Dp(8f))
Visual configuration for markdown rendering.
Every block kind derives its look from this theme so a document can be restyled in one place. Defaults aim at a clean, print-friendly look.
Constructors
Link copied to clipboard
constructor(baseTextStyle: <Error class: unknown class> = TextStyle(), codeBackground: <Error class: unknown class> = PdfColor(0.95f, 0.95f, 0.95f), linkColor: <Error class: unknown class> = PdfColor.Blue, headingScales: List<Float> = listOf(2.0f, 1.6f, 1.3f, 1.15f, 1.05f, 1.0f), blockSpacing: <Error class: unknown class> = Dp(8f))
Properties
Link copied to clipboard
style applied to body text; headings scale its TextStyle.fontSize by the matching headingScales multiplier, and all other blocks inherit its colour, font, and size.
Link copied to clipboard
vertical gap inserted between consecutive blocks.
Link copied to clipboard
fill behind fenced and inline code.
Link copied to clipboard
six multipliers applied to baseTextStyle's font size for h1..h6. Shorter lists fall back to 1f for missing levels.