struct TUI::Markdown::InlineRun

Overview

One contiguous span of same-styled inline text, e.g. a word or run of words that share emphasis/code/link styling. Produced by Inline.parse, consumed by Wrap.wrap — text is never re-split across a style boundary, so a wrap point can only ever fall between runs or inside whitespace within a run, never inside a styled word.

Defined in:

tui/markdown/inline_run.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, style : Style = Style.new) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(text _text = @text, style _style = @style) #

[View source]
def style : Style #

def text : String #