class_docstr: A parser which converts Markdown to HTML.
  
  Attributes:
      Markdown.tab_length (int): The number of spaces which correspond to a single tab. Default: `4`.
      Markdown.ESCAPED_CHARS (list[str]): List of characters which get the backslash escape treatment.
      Markdown.block_level_elements (list[str]): List of HTML tags which get treated as block-level elements.
          See [`markdown.util.BLOCK_LEVEL_ELEMENTS`][] for the full list of elements.
      Markdown.registeredExtensions (list[Extension]): List of extensions which have called
          [`registerExtension`][markdown.Markdown.registerExtension] during setup.
      Markdown.doc_tag (str): Element used to wrap document. Default: `div`.
      Markdown.stripTopLevelTags (bool): Indicates whether the `doc_tag` should be removed. Default: 'True'.
      Markdown.references (dict[str, tuple[str, str]]): A mapping of link references found in a parsed document
           where the key is the reference name and the value is a tuple of the URL and title.
      Markdown.htmlStash (util.HtmlStash): The instance of the `HtmlStash` used by an instance of this class.
      Markdown.output_formats (dict[str, Callable[xml.etree.ElementTree.Element]]): A mapping of known output
           formats by name and their respective serializers. Each serializer must be a callable which accepts an
          [`Element`][xml.etree.ElementTree.Element] and returns a `str`.
      Markdown.output_format (str): The output format set by
          [`set_output_format`][markdown.Markdown.set_output_format].
      Markdown.serializer (Callable[xml.etree.ElementTree.Element]): The serializer set by
          [`set_output_format`][markdown.Markdown.set_output_format].
      Markdown.preprocessors (util.Registry): A collection of [`preprocessors`][markdown.preprocessors].
      Markdown.parser (blockparser.BlockParser): A collection of [`blockprocessors`][markdown.blockprocessors].
      Markdown.inlinePatterns (util.Registry): A collection of [`inlinepatterns`][markdown.inlinepatterns].
      Markdown.treeprocessors (util.Registry): A collection of [`treeprocessors`][markdown.treeprocessors].
      Markdown.postprocessors (util.Registry): A collection of [`postprocessors`][markdown.postprocessors].
class_docstr_tok: ["A","parser","which","converts","Markdown","to","HTML",".","Attributes",":","Markdown.tab_length","(","int",")",":","The","number","of","spaces","which","correspond","to","a","single","tab",".","Default",":","`","4","`",".","Markdown.ESCAPED_CHARS","(","list","[","str","]",")",":","List","of","characters","which","get","the","backslash","escape","treatment",".","Markdown.block_level_elements","(","list","[","str","]",")",":","List","of","HTML","tags","which","get","treated","as","block-level","elements",".","See","[","`","markdown.util.BLOCK_LEVEL_ELEMENTS","`","]","[","]","for","the","full","list","of","elements",".","Markdown.registeredExtensions","(","list","[","Extension","]",")",":","List","of","extensions","which","have","called","[","`","registerExtension","`","]","[","markdown.Markdown.registerExtension","]","during","setup",".","Markdown.doc_tag","(","str",")",":","Element","used","to","wrap","document",".","Default",":","`","div","`",".","Markdown.stripTopLevelTags","(","bool",")",":","Indicates","whether","the","`","doc_tag","`","should","be","removed",".","Default",":","'True","'",".","Markdown.references","(","dict","[","str",",","tuple","[","str",",","str","]","]",")",":","A","mapping","of","link","references","found","in","a","parsed","document","where","the","key","is","the","reference","name","and","the","value","is","a","tuple","of","the","URL","and","title",".","Markdown.htmlStash","(","util.HtmlStash",")",":","The","instance","of","the","`","HtmlStash","`","used","by","an","instance","of","this","class",".","Markdown.output_formats","(","dict","[","str",",","Callable","[","xml.etree.ElementTree.Element","]","]",")",":","A","mapping","of","known","output","formats","by","name","and","their","respective","serializers",".","Each","serializer","must","be","a","callable","which","accepts","an","[","`","Element","`","]","[","xml.etree.ElementTree.Element","]","and","returns","a","`","str","`",".","Markdown.output_format","(","str",")",":","The","output","format","set","by","[","`","set_output_format","`","]","[","markdown.Markdown.set_output_format","]",".","Markdown.serializer","(","Callable","[","xml.etree.ElementTree.Element","]",")",":","The","serializer","set","by","[","`","set_output_format","`","]","[","markdown.Markdown.set_output_format","]",".","Markdown.preprocessors","(","util.Registry",")",":","A","collection","of","[","`","preprocessors","`","]","[","markdown.preprocessors","]",".","Markdown.parser","(","blockparser.BlockParser",")",":","A","collection","of","[","`","blockprocessors","`","]","[","markdown.blockprocessors","]",".","Markdown.inlinePatterns","(","util.Registry",")",":","A","collection","of","[","`","inlinepatterns","`","]","[","markdown.inlinepatterns","]",".","Markdown.treeprocessors","(","util.Registry",")",":","A","collection","of","[","`","treeprocessors","`","]","[","markdown.treeprocessors","]",".","Markdown.postprocessors","(","util.Registry",")",":","A","collection","of","[","`","postprocessors","`","]","[","markdown.postprocessors","]","."]
docstr: Load a list of extensions into an instance of the `Markdown` class.
  
  Arguments:
      extensions (list[Extension | str]): A list of extensions.
  
          If an item is an instance of a subclass of [`markdown.extensions.Extension`][],
          the instance will be used as-is. If an item is of type `str`, it is passed
          to [`build_extension`][markdown.Markdown.build_extension] with its corresponding `configs` and the
          returned instance  of [`markdown.extensions.Extension`][] is used.
      configs (dict[str, dict[str, Any]]): Configuration settings for extensions.
docstr_tok: ["Load","a","list","of","extensions","into","an","instance","of","the","`","Markdown","`","class",".","Arguments",":","extensions","(","list","[","Extension","|","str","]",")",":","A","list","of","extensions",".","If","an","item","is","an","instance","of","a","subclass","of","[","`","markdown.extensions.Extension","`","]","[","]",",","the","instance","will","be","used","as-is",".","If","an","item","is","of","type","`","str","`",",","it","is","passed","to","[","`","build_extension","`","]","[","markdown.Markdown.build_extension","]","with","its","corresponding","`","configs","`","and","the","returned","instance","of","[","`","markdown.extensions.Extension","`","]","[","]","is","used",".","configs","(","dict","[","str",",","dict","[","str",",","Any","]","]",")",":","Configuration","settings","for","extensions","."]
code: def registerExtensions(
      self,
      extensions: Sequence[Extension | str],
      configs: Mapping[str, dict[str, Any]],
  ) -> Markdown:
      """
      Load a list of extensions into an instance of the `Markdown` class.
  
      Arguments:
          extensions (list[Extension | str]): A list of extensions.
  
              If an item is an instance of a subclass of [`markdown.extensions.Extension`][],
              the instance will be used as-is. If an item is of type `str`, it is passed
              to [`build_extension`][markdown.Markdown.build_extension] with its corresponding `configs` and the
              returned instance  of [`markdown.extensions.Extension`][] is used.
          configs (dict[str, dict[str, Any]]): Configuration settings for extensions.
  
      """
      for ext in extensions:
          if isinstance(ext, str):
              ext = self.build_extension(ext, configs.get(ext, {}))
          if isinstance(ext, Extension):
              ext.extendMarkdown(self)
              logger.debug(
                  'Successfully loaded extension "%s.%s".'
                  % (ext.__class__.__module__, ext.__class__.__name__)
              )
          elif ext is not None:
              raise TypeError(
                  'Extension "{}.{}" must be of type: "{}.{}"'.format(
                      ext.__class__.__module__,
                      ext.__class__.__name__,
                      Extension.__module__,
                      Extension.__name__,
                  )
              )
      return self
  
imports: from __future__ import annotations
  import codecs
  import sys
  import logging
  import importlib
  from typing import TYPE_CHECKING, Any, BinaryIO, Callable, ClassVar, Mapping, Sequence
  from .None import util
  from .preprocessors import build_preprocessors
  from .blockprocessors import build_block_parser
  from .treeprocessors import build_treeprocessors
  from .inlinepatterns import build_inlinepatterns
  from .postprocessors import build_postprocessors
  from .extensions import Extension
  from .serializers import to_html_string, to_xhtml_string
  from .util import BLOCK_LEVEL_ELEMENTS
label_desc: Use image node_id 3 for calling the Markdown obj's underlying member method code with example usage: obj.registerExtensions(extensions, configs) and returns: self