This commit is contained in:
molpako 2018-12-27 12:46:22 +09:00
parent 0183db8365
commit 34f3352135
2 changed files with 17 additions and 0 deletions

View file

@ -13,3 +13,10 @@ A paragraph
Another paragraph Another paragraph
```eval_rst
.. contents:: Contents
```
Header 2
----------

View file

@ -210,3 +210,13 @@ class CustomExtensionTests(SphinxIntegrationTests):
self.assertIn('<th class="head">abc</th>', output) self.assertIn('<th class="head">abc</th>', output)
self.assertIn('<th class="head">data</th>', output) self.assertIn('<th class="head">data</th>', output)
self.assertIn('</table>', output) self.assertIn('</table>', output)
self.assertIn(
('<div class="contents topic" id="contents">\n'
'<p class="topic-title first">Contents</p>\n'
'<ul class="simple">\n'
'<li><a class="reference internal" href="#header" id="id1">Header</a><ul>\n'
'<li><a class="reference internal" href="#header-2" id="id2">Header 2</a></li>\n'
'</ul>\n</li>\n</ul>'),
output
)