MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testPermalink

Method testPermalink

tests/test_syntax/extensions/test_toc.py:643–651  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

641 )
642
643 def testPermalink(self):
644 self.assertMarkdownRenders(
645 '# Header',
646 '<h1 id="header">' # noqa
647 'Header' # noqa
648 '<a class="headerlink" href="#header" title="Permanent link">&para;</a>' # noqa
649 '</h1>', # noqa
650 extensions=[TocExtension(permalink=True)]
651 )
652
653 def testPermalinkWithSingleInlineCode(self):
654 self.assertMarkdownRenders(

Callers

nothing calls this directly

Calls 2

TocExtensionClass · 0.90
assertMarkdownRendersMethod · 0.80

Tested by

no test coverage detected