MCPcopy
hub / github.com/Textualize/rich / on_leave

Method on_leave

rich/markdown.py:103–104  ·  view source on GitHub ↗
(self, context: MarkdownContext)

Source from the content-addressed store, hash-verified

101 self.text.append(text, context.current_style if isinstance(text, str) else None)
102
103 def on_leave(self, context: MarkdownContext) -> None:
104 context.leave_style()
105
106
107class Paragraph(TextElement):

Callers 1

__rich_console__Method · 0.45

Calls 1

leave_styleMethod · 0.80

Tested by

no test coverage detected