Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
waylan committed Mar 7, 2024
1 parent b1021cb commit 9d5d813
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/test_syntax/extensions/test_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ def testAlternateTOCMarker(self):
## Header 2
'''
),
'<div class="toc">\n'
'<ul>\n' # noqa
'<li><a href="#header-1">Header 1</a>' # noqa
'<ul>\n' # noqa
'<li><a href="#header-2">Header 2</a></li>\n' # noqa
'</ul>\n' # noqa
'</li>\n' # noqa
'</ul>\n' # noqa
'</div>\n'
'<h1 id="header-1">Header 1</h1>\n'
'<h2 id="header-2">Header 2</h2>',
'<div class="toc">\n'
'<ul>\n' # noqa
'<li><a href="#header-1">Header 1</a>' # noqa
'<ul>\n' # noqa
'<li><a href="#header-2">Header 2</a></li>\n' # noqa
'</ul>\n' # noqa
'</li>\n' # noqa
'</ul>\n' # noqa
'</div>\n'
'<h1 id="header-1">Header 1</h1>\n'
'<h2 id="header-2">Header 2</h2>',
extensions=[TocExtension(marker='{{marker}}')]
)

Expand Down Expand Up @@ -515,7 +515,6 @@ def testTOCInlineMarkupPermalinkLeading(self):
extensions=[TocExtension(permalink=True, permalink_title="PL", permalink_leading=True)]
)


def testAnchorLink(self):
self.assertMarkdownRenders(
self.dedent(
Expand Down

0 comments on commit 9d5d813

Please sign in to comment.