From 222dd133c6274fa8b2ddcc5a977cc30249ba684a Mon Sep 17 00:00:00 2001 From: eightytwo <> Date: Thu, 2 Jul 2020 09:44:24 +1000 Subject: [PATCH] Limit the table of contents to heading 1 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index d87f9a4..50aaead 100644 --- a/build.py +++ b/build.py @@ -74,7 +74,7 @@ def parse_markdown(filepath: str) -> Dict: md = markdown.Markdown( extensions=[ 'meta', - TocExtension(title='Contents', permalink=True), + TocExtension(title='Contents', permalink=True, toc_depth=2), CodeHiliteExtension(guess_lang=False), ], output_format='html5', -- 2.45.2