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)
| 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 | |
| 508 | def load_extension(ext_name, configs = []): |