parameters: (self, md, md_globals)
docstring: Register extension instances.
docstring_summary: Register extension instances.
docstring_tokens: Register extension instances .
function: def extendMarkdown(self, md, md_globals):
          """ Register extension instances. """
          md.registerExtensions(extensions, self.config)
          if not md.safeMode:
              # Turn on processing of markdown text within raw html
              md.preprocessors['html_block'].markdown_in_raw = True
              md.parser.blockprocessors.add('markdown_block',
                                            MarkdownInHtmlProcessor(md.parser),
                                            '_begin')
              md.parser.blockprocessors.tag_counter = -1
              md.parser.blockprocessors.contain_span_tags = re.compile(
                  r'^(p|h[1-6]|li|dd|dt|td|th|legend|address)$', re.IGNORECASE)
function_tokens: def extendMarkdown ( self , md , md_globals ) : md . registerExtensions ( extensions , self . config ) if not md . safeMode : # Turn on processing of markdown text within raw html md . preprocessors [ 'html_block' ] . markdown_in_raw = True md . parser . blockprocessors . add ( 'markdown_block' , MarkdownInHtmlProcessor ( md . parser ) , '_begin' ) md . parser . blockprocessors . tag_counter = - 1 md . parser . blockprocessors . contain_span_tags = re . compile ( r'^(p|h[1-6]|li|dd|dt|td|th|legend|address)$' , re . IGNORECASE )