aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
Diffstat (limited to 'pysite')
-rw-r--r--pysite/rst/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pysite/rst/__init__.py b/pysite/rst/__init__.py
index 0c069615..74f19285 100644
--- a/pysite/rst/__init__.py
+++ b/pysite/rst/__init__.py
@@ -17,7 +17,9 @@ HREF_REGEX = re.compile(r"""<a class=\"reference internal\" href=\"(.*?)\".*?>(.
def render(rst: str):
rst = RST_TEMPLATE.format(rst)
html = publish_parts(
- source=rst, writer_name="html5", settings_overrides={"halt_level": 2, "syntax_highlight": "short"}
+ source=rst, writer_name="html5", settings_overrides={
+ "halt_level": 2, "syntax_highlight": "short", "initial_header_level": 3
+ }
)["html_body"]
data = {