MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / lastChild

Method lastChild

markdown/blockprocessors.py:78–83  ·  view source on GitHub ↗

Return the last child of an `etree` element.

(self, parent: etree.Element)

Source from the content-addressed store, hash-verified

76 self.tab_length = parser.md.tab_length
77
78 def lastChild(self, parent: etree.Element) -> etree.Element | None:
79 """ Return the last child of an `etree` element. """
80 if len(parent):
81 return parent[-1]
82 else:
83 return None
84
85 def detab(self, text: str, length: int | None = None) -> tuple[str, str]:
86 """ Remove a tab from the front of each line of the given text. """

Callers 8

get_levelMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
parse_contentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected