MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / testAnchorLink

Method testAnchorLink

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

Source from the content-addressed store, hash-verified

516 )
517
518 def testAnchorLink(self):
519 self.assertMarkdownRenders(
520 self.dedent(
521 '''
522 # Header 1
523
524 ## Header *2*
525 '''
526 ),
527 self.dedent(
528 '''
529 <h1 id="header-1"><a class="toclink" href="#header-1">Header 1</a></h1>
530 <h2 id="header-2"><a class="toclink" href="#header-2">Header <em>2</em></a></h2>
531 ''&#x27;
532 ),
533 extensions=[TocExtension(anchorlink=True)]
534 )
535
536 def testAnchorLinkWithSingleInlineCode(self):
537 self.assertMarkdownRenders(

Callers

nothing calls this directly

Calls 3

TocExtensionClass · 0.90
assertMarkdownRendersMethod · 0.80
dedentMethod · 0.80

Tested by

no test coverage detected