'Register extensions with this instance of Markdown.
Keyword aurguments:
* extensions: A list of extensions, which can either
be strings or objects.  See the docstring on Markdown.
* configs: A dictionary mapping module names to config options.'

def registerExtensions(self, extensions, configs):

    for ext in extensions:
        if isinstance(ext, basestring):
            ext = load_extension(ext, configs.get(ext, []))
        if isinstance(ext, Extension):
            try:
                ext.extendMarkdown(self, globals())
            except NotImplementedError as e:
                message(ERROR, e)
        else:
            message(ERROR, ('Extension    "%s.%s"    must    be    of    type:    "markdown.Extension".' % (ext.__class__.__module__, ext.__class__.__name__)))
