Resets all state variables so that we can start with a new text.
(self)
| 341 | self.registeredExtensions.append(extension) |
| 342 | |
| 343 | def reset(self): |
| 344 | """ |
| 345 | Resets all state variables so that we can start with a new text. |
| 346 | """ |
| 347 | self.htmlStash.reset() |
| 348 | self.references.clear() |
| 349 | |
| 350 | for extension in self.registeredExtensions: |
| 351 | extension.reset() |
| 352 | |
| 353 | def set_output_format(self, format): |
| 354 | """ Set the output format for the class instance. """ |