class

Glimmer::Style::Theme

Inherits Reference < Object

Theme defines the styling for all Markdown elements.

Each element type has a corresponding StylePrimitive that defines

how it should be rendered.

Constructors

ascii

ASCII-only theme with no colors or unicode.

Source
dark

Built-in dark theme โ€” matches Glamour's dark.json color palette.

Source
light

Built-in light theme โ€” matches Glamour's light.json color palette.

Source

Instance methods

alert_caution
Source
alert_caution=(alert_caution : String)
Source
alert_icon(type : String) : String

Returns the alert icon for a given alert type.

Source
alert_important
Source
alert_important=(alert_important : String)
Source
alert_note
Source
alert_note=(alert_note : String)
Source
alert_tip
Source
alert_tip=(alert_tip : String)
Source
alert_warning
Source
alert_warning=(alert_warning : String)
Source
block_quote
Source
block_quote=(block_quote : StylePrimitive)
Source
bullet
Source
bullet=(bullet : StylePrimitive)
Source
code_block
Source
code_block=(code_block : StylePrimitive)
Source
code_span
Source
code_span=(code_span : StylePrimitive)
Source
document
Source
document=(document : StylePrimitive)
Source
emphasis
Source
emphasis=(emphasis : StylePrimitive)
Source
heading(level : Int32) : StylePrimitive

Returns the style for a given heading level (1-6).

Source
heading1
Source
heading1=(heading1 : StylePrimitive)
Source
heading2
Source
heading2=(heading2 : StylePrimitive)
Source
heading3
Source
heading3=(heading3 : StylePrimitive)
Source
heading4
Source
heading4=(heading4 : StylePrimitive)
Source
heading5
Source
heading5=(heading5 : StylePrimitive)
Source
heading6
Source
heading6=(heading6 : StylePrimitive)
Source
horizontal_rule
Source
horizontal_rule=(horizontal_rule : StylePrimitive)
Source
image
Source
image=(image : StylePrimitive)
Source
ordered
Source
ordered=(ordered : StylePrimitive)
Source
strikethrough
Source
strikethrough=(strikethrough : StylePrimitive)
Source
strong
Source
strong=(strong : StylePrimitive)
Source
table_header
Source
table_header=(table_header : StylePrimitive)
Source
task_checked
Source
task_checked=(task_checked : StylePrimitive)
Source
task_unchecked
Source
task_unchecked=(task_unchecked : StylePrimitive)
Source