Resets all state variables to prepare the parser instance for new input. Called once upon creation of a class instance. Should be called manually between calls to [`Markdown.convert`][markdown.Markdown.convert].
(self)
| 261 | return self |
| 262 | |
| 263 | def reset(self) -> Markdown: |
| 264 | """ |
| 265 | Resets all state variables to prepare the parser instance for new input. |
| 266 | |
| 267 | Called once upon creation of a class instance. Should be called manually between calls |
| 268 | to [`Markdown.convert`][markdown.Markdown.convert]. |
| 269 | """ |
| 270 | self.htmlStash.reset() |
| 271 | self.references.clear() |
| 272 | |
| 273 | for extension in self.registeredExtensions: |
| 274 | if hasattr(extension, 'reset'): |
| 275 | extension.reset() |
| 276 | |
| 277 | return self |
| 278 | |
| 279 | def set_output_format(self, format: str) -> Markdown: |
| 280 | """ |
no outgoing calls