code: def __init__(self, **kwargs):
      self.config = {
          "marker": [
              "[TOC]",
              "Text to find and replace with Table of Contents. Set to an empty string to disable. "
              "Default: `[TOC]`.",
          ],
          "title": [
              "",
              "Title to insert into TOC `<div>`. Default: an empty string.",
          ],
          "title_class": [
              "toctitle",
              "CSS class used for the title. Default: `toctitle`.",
          ],
          "toc_class": [
              "toc",
              "CSS class(es) used for the link. Default: `toclink`.",
          ],
          "anchorlink": [
              False,
              "True if header should be a self link. Default: `False`.",
          ],
          "anchorlink_class": [
              "toclink",
              "CSS class(es) used for the link. Defaults: `toclink`.",
          ],
          "permalink": [
              0,
              "True or link text if a Sphinx-style permalink should be added. Default: `False`.",
          ],
          "permalink_class": [
              "headerlink",
              "CSS class(es) used for the link. Default: `headerlink`.",
          ],
          "permalink_title": [
              "Permanent link",
              "Title attribute of the permalink. Default: `Permanent link`.",
          ],
          "permalink_leading": [
              False,
              "True if permalinks should be placed at start of the header, rather than end. Default: False.",
          ],
          "baselevel": ["1", "Base level for headers. Default: `1`."],
          "slugify": [
              slugify,
              "Function to generate anchors based on header text. Default: `slugify`.",
          ],
          "separator": ["-", "Word separator. Default: `-`."],
          "toc_depth": [
              6,
              "Define the range of section levels to include in the Table of Contents. A single integer "
              "(b) defines the bottom section level (<h1>..<hb>) only. A string consisting of two digits "
              "separated by a hyphen in between (`2-5`) defines the top (t) and the bottom (b) (<ht>..<hb>). "
              "Default: `6` (bottom).",
          ],
      }
      """ Default configuration options. """
  
      super().__init__(**kwargs)
  
imports: from __future__ import annotations
  from .None import Extension
  from ..treeprocessors import Treeprocessor
  from ..util import code_escape, parseBoolValue, AMP_SUBSTITUTE, HTML_PLACEHOLDER_RE, AtomicString
  from ..treeprocessors import UnescapeTreeprocessor
  import re
  import html
  import unicodedata
  import xml.etree.ElementTree
  from typing import TYPE_CHECKING, Any, Iterator, MutableSet
label_desc: Use image node_id 1 to create a new TocExtension object from inherited base classes: Extension with example: obj = TocExtension()