From 6fccc9eec0905946ccfbd96e0546b0b07d431d08 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 20 Sep 2020 19:11:11 +0200 Subject: [PATCH] Sync doc conf --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index be5275d5cc..3016036e46 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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#{1,2})\s*?(?P.*?)$", _sub_header, doc, flags=re.MULTILINE + r"^(?P<hashes>#{1,4})\s*?(?P<title>.*?)$", _sub_header, doc, flags=re.MULTILINE ) newlines = doc.split("\n")