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

Method testPermalink

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

TocExtensionClass · 0.90
assertMarkdownRendersMethod · 0.80

Tested by

no test coverage detected