Clear footnotes on reset, and prepare for distinct document.
(self)
| 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. """ |