struct TUI::Markdown::Inline::Config

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.cr

Constructors

Instance Method Summary

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))) #

[View source]

Instance Method Detail

def bold_italic_style : Style #

def bold_style : Style #

def clone #

[View source]
def code_style : Style #

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) #

[View source]
def italic_style : Style #

def link_style : Style #

def strikethrough_style : Style #