GlamourRenderer class

Renders markdown to ANSI using the Glamour theme system.

Note on blockquote nesting: The markdown package creates separate blockquote elements for each > line, so renderStyle normalizes the AST to merge adjacent blockquotes and promote nested > markers into nested blockquote nodes before rendering.

Constructors

GlamourRenderer({required GlamourTheme theme, int width = 80})
Creates a renderer with a theme and optional line width.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme GlamourTheme
The style theme used for rendering.
final
width int
The maximum line width for word wrapping.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(List<Node> nodes) String
Renders a markdown string to styled ANSI output.
toString() String
A string representation of this object.
inherited
visitElementAfter(Element element) → void
Called when an Element has been reached, after its children have been visited.
visitElementBefore(Element element) bool
Called when an Element has been reached, before its children have been visited.
visitText(Text text) → void
Called when a Text node has been reached.

Operators

operator ==(Object other) bool
The equality operator.
inherited