aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/rst/__init__.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-12 16:32:19 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-12 16:32:19 +0100
commitcbeca8232aa521212f09fa296bdec64526d5f70c (patch)
tree454913ea044ab66c82210d593ab97ac921f828b5 /pysite/rst/__init__.py
parent[Wiki] Some excellent shitcode for document TOCs (diff)
[Wiki] Lower initial header level to 3
Diffstat (limited to 'pysite/rst/__init__.py')
-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 = {