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

Method testPermalink

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

Source from the content-addressed store, hash-verified

556 )
557
558 def testPermalink(self):
559 self.assertMarkdownRenders(
560 '# Header',
561 '<h1 id="header">' # noqa
562 'Header' # noqa
563 '<a class="headerlink" href="#header" title="Permanent link">&para;</a>' # noqa
564 '</h1>', # noqa
565 extensions=[TocExtension(permalink=True)]
566 )
567
568 def testPermalinkWithSingleInlineCode(self):
569 self.assertMarkdownRenders(

Callers

nothing calls this directly

Calls 2

TocExtensionClass · 0.90
assertMarkdownRendersMethod · 0.80

Tested by

no test coverage detected