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

Method __init__

markdown/htmlparser.py:139–150  ·  view source on GitHub ↗
(self, md: Markdown, *args, **kwargs)

Source from the content-addressed store, hash-verified

137 """
138
139 def __init__(self, md: Markdown, *args, **kwargs):
140 if 'convert_charrefs' not in kwargs:
141 kwargs['convert_charrefs'] = False
142
143 # Block tags that should contain no content (self closing)
144 self.empty_tags = set(['hr'])
145
146 self.lineno_start_cache = [0]
147
148 # This calls self.reset
149 super().__init__(*args, **kwargs)
150 self.md = md
151
152 def reset(self):
153 """Reset this instance. Loses all unprocessed data."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected