Skip to content

Commit 984ab9c

Browse files
author
Peter Amstutz
committed
Fix makedoc section header bug.
1 parent cc0f52b commit 984ab9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema_salad/makedoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def linkto(item):
4747

4848
class MyRenderer(mistune.Renderer):
4949
def header(self, text, level, raw=None):
50-
return """<h%i id="%s">%s</h1>""" % (level, to_id(text), text)
50+
return """<h%i id="%s">%s</h%i>""" % (level, to_id(text), text, level)
5151

5252
def to_id(text):
5353
textid = text

0 commit comments

Comments
 (0)