(self)
| 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 | ''' |
| 532 | ), |
| 533 | extensions=[TocExtension(anchorlink=True)] |
| 534 | ) |
| 535 | |
| 536 | def testAnchorLinkWithSingleInlineCode(self): |
| 537 | self.assertMarkdownRenders( |
nothing calls this directly
no test coverage detected