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

Method __init__

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

Source from the content-addressed store, hash-verified

127 """
128
129 def __init__(self, md: Markdown, *args, **kwargs):
130 if 'convert_charrefs' not in kwargs:
131 kwargs['convert_charrefs'] = False
132
133 # Block tags that should contain no content (self closing)
134 self.empty_tags = set(['hr'])
135
136 self.lineno_start_cache = [0]
137
138 # This calls self.reset
139 super().__init__(*args, **kwargs)
140 self.md = md
141
142 def reset(self):
143 """Reset this instance. Loses all unprocessed data."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected