glamour library

Glamour Markdown Rendering for Dart.

This library provides a high-fidelity Markdown renderer mirroring the capabilities of Charm's Glamour project.

Note: This is separate from markdown.dart which provides a lighter-weight ANSI renderer.

Classes

GlamourBlockContext
Tracks rendering state for a block-level markdown element.
GlamourBlockStyle
Represents StyleBlock in glamour.
GlamourCodeBlockStyle
Represents StyleCodeBlock in glamour.
GlamourListStyle
Represents StyleList in glamour.
GlamourPrimitiveStyle
Represents StylePrimitive in glamour.
GlamourRenderer
Renders markdown to ANSI using the Glamour theme system.
GlamourTableStyle
Represents StyleTable in glamour.
GlamourTaskStyle
Represents StyleTask in glamour.
GlamourTheme
Configuration for Glamour markdown rendering.

Functions

renderStyle(String markdown, {required GlamourTheme theme, int width = 80}) String
Renders markdown text using the specified theme.