(el: etree.Element, md: markdown.Markdown)
| 42 | |
| 43 | |
| 44 | def _render_inner_html(el: etree.Element, md: markdown.Markdown) -> str: |
| 45 | # The `UnescapeTreeprocessor` runs after `toc` extension so run here. |
| 46 | text = md.serializer(el) |
| 47 | text = _unescape(text) |
| 48 | |
| 49 | # Strip parent tag |
| 50 | start = text.index('>') + 1 |
| 51 | end = text.rindex('<') |
| 52 | text = text[start:end].strip() |
| 53 | |
| 54 | for pp in md.postprocessors: |
| 55 | text = pp.run(text) |
| 56 | return text |
| 57 | |
| 58 | |
| 59 | def _remove_anchorlink(el: etree.Element) -> None: |
no test coverage detected
searching dependent graphs…