Markup

Term.markup.MarkupTagType
MarkupTag

Represents a complete markup tag.

It stores two SingleTag, the text inbetween and any other MarkupTag that was detected in that text.

source
Term.markup.clean_nested_tagsMethod
clean_nested_tags(text::AbstractString)::AbstractString

Given a text with nested string like: [red]aaaa [green]bbbb[/green] cccc [blue] ddddd [/blue]eeee[/red]

it adds extra tags to ensure that text within inner tags is handled properly, giving: [red]aaaa [green]bbbb[/green][red] cccc [/red][blue] ddddd [/blue][red]eeee[/red]

source
Term.markup.pairup_tagsMethod
pairup_tags(text::Vector{AbstractString})

Given a vector of string with markup tags not properly closed/opened across lines, it fixes things up.

source