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

Method on_enter

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

Source from the content-addressed store, hash-verified

94 style_name = "none"
95
96 def on_enter(self, context: MarkdownContext) -> None:
97 self.style = context.enter_style(self.style_name)
98 self.text = Text(justify="left")
99
100 def on_text(self, context: MarkdownContext, text: TextType) -> None:
101 self.text.append(text, context.current_style if isinstance(text, str) else None)

Callers

nothing calls this directly

Calls 2

TextClass · 0.85
enter_styleMethod · 0.80

Tested by

no test coverage detected