Return the last child of an `etree` element.
(self, parent: etree.Element)
| 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. """ |