MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / __init__

Method __init__

markdown/extensions/admonition.py:65–71  ·  view source on GitHub ↗

Initialization.

(self, parser: blockparser.BlockParser)

Source from the content-addressed store, hash-verified

63 RE_SPACES = re.compile(' +')
64
65 def __init__(self, parser: blockparser.BlockParser):
66 """Initialization."""
67
68 super().__init__(parser)
69
70 self.current_sibling: etree.Element | None = None
71 self.content_indent = 0
72
73 def parse_content(self, parent: etree.Element, block: str) -> tuple[etree.Element | None, str, str]:
74 """Get sibling admonition.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected