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

Method reset

markdown/extensions/md_in_html.py:67–73  ·  view source on GitHub ↗

Reset this instance. Loses all unprocessed data.

(self)

Source from the content-addressed store, hash-verified

65 return self.block_tags | self.span_tags
66
67 def reset(self):
68 """Reset this instance. Loses all unprocessed data."""
69 self.mdstack: list[str] = [] # When markdown=1, stack contains a list of tags
70 self.treebuilder = etree.TreeBuilder()
71 self.mdstate: list[Literal['block', 'span', 'off', None]] = []
72 self.mdstarted: list[bool] = []
73 super().reset()
74
75 def close(self):
76 """Handle any buffered data."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected