class_docstr: Test TOC Extension. 
class_docstr_tok: ["Test","TOC","Extension","."]
docstr: Test TOC with user defined marker. 
docstr_tok: ["Test","TOC","with","user","defined","marker","."]
code: def testAlternateMarker(self):
      """Test TOC with user defined marker."""
      md = markdown.Markdown(
          extensions=[
              markdown.extensions.toc.TocExtension(marker="{{marker}}")
          ]
      )
      text = "{{marker}}\n\n# Header 1\n\n## Header 2"
      self.assertEqual(
          md.convert(text),
          '<div class="toc">\n'
          "<ul>\n"  # noqa
          '<li><a href="#header-1">Header 1</a>'  # noqa
          "<ul>\n"  # noqa
          '<li><a href="#header-2">Header 2</a></li>\n'  # noqa
          "</ul>\n"  # noqa
          "</li>\n"  # noqa
          "</ul>\n"  # noqa
          "</div>\n"
          '<h1 id="header-1">Header 1</h1>\n'
          '<h2 id="header-2">Header 2</h2>',
      )
  
imports: import unittest
  import markdown
label_desc: Use image node_id 4 for calling the TestTOC obj's underlying member method code with example usage: obj.testAlternateMarker() without return types