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

Method on_enter

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

Source from the content-addressed store, hash-verified

147 return cls(token.tag)
148
149 def on_enter(self, context: MarkdownContext) -> None:
150 self.text = Text()
151 context.enter_style(self.style_name)
152
153 def __init__(self, tag: str) -> None:
154 self.tag = tag

Callers 2

on_enterMethod · 0.45
__rich_console__Method · 0.45

Calls 2

TextClass · 0.85
enter_styleMethod · 0.80

Tested by

no test coverage detected