Method: rich.markdown.MarkdownElement.on_child_close
Calls: 50, Exceptions: 0, Paths: 1Back
Path 1: 50 calls (1.0)
MarkdownContext (50)
Paragraph (18) Heading (13) CodeBlock (7) ListElement (6) HorizontalRule (2) BlockQuote (2) ImageItem (2)
True (50)
1def on_child_close(
2 self, context: "MarkdownContext", child: "MarkdownElement"
3 ) -> bool:
4 """Called when a child element is closed.
5
6 This method allows a parent element to take over rendering of its children.
7
8 Args:
9 context (MarkdownContext): The markdown context.
10 child (MarkdownElement): The child markdown element.
11
12 Returns:
13 bool: Return True to render the element, or False to not render the element.
14 """
15 return True