MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / extendMarkdown

Method extendMarkdown

markdown/extensions/__init__.py:132–145  ·  view source on GitHub ↗

Add the various processors and patterns to the Markdown Instance. This method must be overridden by every extension. Arguments: md: The Markdown instance.

(self, md: Markdown)

Source from the content-addressed store, hash-verified

130 self.setConfig(key, value)
131
132 def extendMarkdown(self, md: Markdown) -> None:
133 """
134 Add the various processors and patterns to the Markdown Instance.
135
136 This method must be overridden by every extension.
137
138 Arguments:
139 md: The Markdown instance.
140
141 """
142 raise NotImplementedError(
143 'Extension "%s.%s" must define an "extendMarkdown"'
144 'method.' % (self.__class__.__module__, self.__class__.__name__)
145 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected