Fixed #25667 -- Fixed admindocs initial_header_level.
This commit is contained in:
parent
0825f77f76
commit
4d0f8831a7
|
@ -65,7 +65,7 @@ def parse_rst(text, default_reference_context, thing_being_parsed=None):
|
|||
"""
|
||||
overrides = {
|
||||
'doctitle_xform': True,
|
||||
'inital_header_level': 3,
|
||||
'initial_header_level': 3,
|
||||
"default_reference_context": default_reference_context,
|
||||
"link_base": reverse('django-admindocs-docroot').rstrip('/'),
|
||||
'raw_enabled': False,
|
||||
|
|
|
@ -485,3 +485,8 @@ class TestUtils(AdminDocsTestCase):
|
|||
'</p>\n'
|
||||
)
|
||||
self.assertHTMLEqual(description_output, description_rendered)
|
||||
|
||||
def test_initial_header_level(self):
|
||||
header = 'should be h3...\n\nHeader\n------\n'
|
||||
output = utils.parse_rst(header, 'header')
|
||||
self.assertIn('<h3>Header</h3>', output)
|
||||
|
|
Loading…
Reference in New Issue