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

Method reset

markdown/extensions/footnotes.py:128–134  ·  view source on GitHub ↗

Clear footnotes on reset, and prepare for distinct document.

(self)

Source from the content-addressed store, hash-verified

126 md.postprocessors.register(FootnotePostprocessor(self), 'footnote', 25)
127
128 def reset(self) -> None:
129 """ Clear footnotes on reset, and prepare for distinct document. """
130 self.footnote_order: list[str] = []
131 self.footnotes: OrderedDict[str, str] = OrderedDict()
132 self.unique_prefix += 1
133 self.found_refs = {}
134 self.used_refs = set()
135
136 def unique_ref(self, reference: str, found: bool = False) -> str:
137 """ Get a unique reference if there are duplicates. """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected