Sync doc conf

This commit is contained in:
Griatch 2020-09-20 19:11:11 +02:00
parent 6a9ece4536
commit 6fccc9eec0

View file

@ -276,7 +276,7 @@ def autodoc_post_process_docstring(app, what, name, obj, options, lines):
doc = re.sub(r"```", "", doc, flags=re.MULTILINE)
doc = re.sub(r"`{1}", "**", doc, flags=re.MULTILINE)
doc = re.sub(
r"^(?P<hashes>#{1,2})\s*?(?P<title>.*?)$", _sub_header, doc, flags=re.MULTILINE
r"^(?P<hashes>#{1,4})\s*?(?P<title>.*?)$", _sub_header, doc, flags=re.MULTILINE
)
newlines = doc.split("\n")