MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / reset

Method reset

markdown/__init__.py:343–351  ·  view source on GitHub ↗

Resets all state variables so that we can start with a new text.

(self)

Source from the content-addressed store, hash-verified

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. """

Callers 3

__init__Method · 0.95
runMethod · 0.45
runMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected