struct
TUI::Markdown::Inline::Config
- TUI::Markdown::Inline::Config
- Struct
- Value
- Object
Overview
Bundles the styles inline parsing assigns to each span kind, so a host (MarkdownView) can override them in one place without every Inline.parse call site growing five separate parameters.
Defined in:
tui/markdown/inline.crConstructors
Instance Method Summary
- #bold_italic_style : Style
- #bold_style : Style
- #clone
- #code_style : Style
- #copy_with(bold_style _bold_style = @bold_style, italic_style _italic_style = @italic_style, bold_italic_style _bold_italic_style = @bold_italic_style, strikethrough_style _strikethrough_style = @strikethrough_style, code_style _code_style = @code_style, link_style _link_style = @link_style)
- #italic_style : Style
- #link_style : Style
- #strikethrough_style : Style
Constructor Detail
def self.new(bold_style : Style = Style.new(bold: true), italic_style : Style = Style.new(italic: true), bold_italic_style : Style = Style.new(bold: true, italic: true), strikethrough_style : Style = Style.new(strikethrough: true), code_style : Style = Style.new(fg: TUI.color(:yellow)), link_style : Style = Style.new(fg: TUI.color(:blue)))
#
Instance Method Detail
def copy_with(bold_style _bold_style = @bold_style, italic_style _italic_style = @italic_style, bold_italic_style _bold_italic_style = @bold_italic_style, strikethrough_style _strikethrough_style = @strikethrough_style, code_style _code_style = @code_style, link_style _link_style = @link_style)
#