Skip to content

rs_rich.markup

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich.markup: escape, render and Tag.

MarkupError

Bases: ConsoleError

Console markup that does not parse, such as a closing tag with no opener.

Tag

Bases: NamedTuple

name instance-attribute

name: str

parameters instance-attribute

parameters: Optional[str]

markup property

markup: str

escape

escape(markup: str) -> str

Backslash-escape [ so text is printed literally rather than read as markup.

render

render(markup: str, style: Union[str, Style] = '', emoji: bool = True, emoji_variant: Optional[Literal['emoji', 'text']] = None) -> Text

rich.markup.render (rs_rich.markup.render): console markup to a Text.