MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / extendMarkdown

Method extendMarkdown

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

Add an instance of `TableProcessor` to `BlockParser`.

(self, md)

Source from the content-addressed store, hash-verified

237 super().__init__(**kwargs)
238
239 def extendMarkdown(self, md):
240 """ Add an instance of `TableProcessor` to `BlockParser`. """
241 if '|' not in md.ESCAPED_CHARS:
242 md.ESCAPED_CHARS.append('|')
243 processor = TableProcessor(md.parser, self.getConfigs())
244 md.parser.blockprocessors.register(processor, 'table', 75)
245
246
247def 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