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

Method extendMarkdown

markdown/__init__.py:491–505  ·  view source on GitHub ↗

Add the various proccesors and patterns to the Markdown Instance. This method must be overriden by every extension. Keyword arguments: * md: The Markdown instance. * md_globals: Global variables in the markdown module namespace.

(self, md, md_globals)

Source from the content-addressed store, hash-verified

489 self.config[key][0] = value
490
491 def extendMarkdown(self, md, md_globals):
492 """
493 Add the various proccesors and patterns to the Markdown Instance.
494
495 This method must be overriden by every extension.
496
497 Keyword arguments:
498
499 * md: The Markdown instance.
500
501 * md_globals: Global variables in the markdown module namespace.
502
503 """
504 raise NotImplementedError('Extension "%s.%s" must define an "extendMarkdown"' \
505 'method.' % (self.__class__.__module__, self.__class__.__name__))
506
507
508def load_extension(ext_name, configs = []):

Callers 1

registerExtensionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected