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

Method extendMarkdown

markdown/extensions/tables.py:239–251  ·  view source on GitHub ↗

Register the processor. | Class Instance | Registry | Name | Priority | | ------------------------------------------------------------- | ---------------------------------------

(self, md)

Source from the content-addressed store, hash-verified

237 super().__init__(**kwargs)
238
239 def extendMarkdown(self, md):
240 """ Register the processor.
241
242 | Class Instance | Registry | Name | Priority |
243 | ------------------------------------------------------------- | ---------------------------------------------------------------- | ------ | :------: |
244 | [`TableProcessor`][markdown.extensions.tables.TableProcessor] | [`blockprocessors`][markdown.blockprocessors.build_block_parser] | `table` | `75` |
245
246 """
247 # flake8: noqa: E501 242-244
248 if '|' not in md.ESCAPED_CHARS:
249 md.ESCAPED_CHARS.append('|')
250 processor = TableProcessor(md.parser, self.getConfigs())
251 md.parser.blockprocessors.register(processor, 'table', 75)
252
253
254def makeExtension(**kwargs): # pragma: no cover

Callers

nothing calls this directly

Calls 3

TableProcessorClass · 0.85
getConfigsMethod · 0.80
registerMethod · 0.80

Tested by

no test coverage detected