def METHOD_NAME(self):
    md = dedent(
        """
        # Heading 1
        ## Heading 2
        # Heading 3
        ### Heading 4
        ### <a href="/">Heading 5</a>
        """
    )
    expected = dedent(
        """
        Heading 1 - #heading-1
            Heading 2 - #heading-2
        Heading 3 - #heading-3
            Heading 4 - #heading-4
            Heading 5 - #heading-5
        """
    )
    toc = get_toc(get_markdown_toc(md))
    self.assertEqual(str(toc).strip(), expected)
    self.assertEqual(len(toc), 2)