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

Method on_text

rich/markdown.py:333–337  ·  view source on GitHub ↗
(self, context: MarkdownContext, text: TextType)

Source from the content-addressed store, hash-verified

331 self.justify = justify
332
333 def on_text(self, context: MarkdownContext, text: TextType) -> None:
334 if isinstance(text, str):
335 self.content.append(text, context.current_style)
336 else:
337 self.content.append_text(text)
338
339
340class ListElement(MarkdownElement):

Callers

nothing calls this directly

Calls 2

append_textMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected