Contents:
Tag
Tag.markup
Tag.name
Tag.parameters
escape()
render()
A tag in console markup.
name (str)
parameters (str | None)
Get the string representation of this tag.
The tag name. e.g. ‘bold’.
Any additional parameters after the name.
Escapes text so that it won’t be interpreted as markup.
markup (str) – Content to be inserted in to markup.
_escape (Callable[[Callable[[Match[str]], str], str], str])
Markup with square brackets escaped.
str
Render console markup in to a Text instance.
markup (str) – A string containing console markup.
style (str | Style) – (Union[str, Style]): The style to use.
emoji (bool, optional) – Also render emoji code. Defaults to True.
emoji_variant (str, optional) – Optional emoji variant, either “text” or “emoji”. Defaults to None.
MarkupError – If there is a syntax error in the markup.
A test instance.
Text