(self)
| 484 | ) |
| 485 | |
| 486 | def testTocInHeaders(self): |
| 487 | self.assertMarkdownRenders( |
| 488 | self.dedent( |
| 489 | ''' |
| 490 | [TOC] |
| 491 | #[TOC] |
| 492 | ''' |
| 493 | ), |
| 494 | '<div class="toc">\n' # noqa |
| 495 | '<ul>\n' # noqa |
| 496 | '<li><a href="#toc">[TOC]</a></li>\n' # noqa |
| 497 | '</ul>\n' # noqa |
| 498 | '</div>\n' # noqa |
| 499 | '<h1 id="toc">[TOC]</h1>' # noqa |
| 500 | ) |
| 501 | |
| 502 | self.assertMarkdownRenders( |
| 503 | self.dedent( |
| 504 | ''' |
| 505 | #[TOC] |
| 506 | [TOC] |
| 507 | ''' |
| 508 | ), |
| 509 | '<h1 id="toc">[TOC]</h1>\n' # noqa |
| 510 | '<div class="toc">\n' # noqa |
| 511 | '<ul>\n' # noqa |
| 512 | '<li><a href="#toc">[TOC]</a></li>\n' # noqa |
| 513 | '</ul>\n' # noqa |
| 514 | '</div>' # noqa |
| 515 | ) |
| 516 | |
| 517 | self.assertMarkdownRenders( |
| 518 | self.dedent( |
| 519 | ''' |
| 520 | [TOC] |
| 521 | # *[TOC]* |
| 522 | ''' |
| 523 | ), |
| 524 | '<div class="toc">\n' # noqa |
| 525 | '<ul>\n' # noqa |
| 526 | '<li><a href="#toc">[TOC]</a></li>\n' # noqa |
| 527 | '</ul>\n' # noqa |
| 528 | '</div>\n' # noqa |
| 529 | '<h1 id="toc"><em>[TOC]</em></h1>' # noqa |
| 530 | ) |
| 531 | |
| 532 | def testTOCPermalink(self): |
| 533 | self.assertMarkdownRenders( |
nothing calls this directly
no test coverage detected