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

Method reset

markdown/htmlparser.py:142–151  ·  view source on GitHub ↗

Reset this instance. Loses all unprocessed data.

(self)

Source from the content-addressed store, hash-verified

140 self.md = md
141
142 def reset(self):
143 """Reset this instance. Loses all unprocessed data."""
144 self.inraw = False
145 self.intail = False
146 self.stack: list[str] = [] # When `inraw==True`, stack contains a list of tags
147 self._cache: list[str] = []
148 self.cleandoc: list[str] = []
149 self.lineno_start_cache = [0]
150
151 super().reset()
152
153 def close(self):
154 """Handle any buffered data."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected