From 2f68dbba936301b86d6253652a58775b7665a7b2 Mon Sep 17 00:00:00 2001 From: nesnoj Date: Tue, 12 Nov 2024 17:55:08 +0100 Subject: [PATCH] Add markdown extension toc --- config/settings/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/settings/base.py b/config/settings/base.py index b79a00ec..6c67e827 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -273,8 +273,14 @@ def __getitem__(self, item): # noqa: D105, ANN001, ANN204 "MARKDOWN_EXTENSIONS": [ "markdown.extensions.extra", "markdown.extensions.admonition", + "markdown.extensions.toc", "md4mathjax", ], + "MARKDOWN_EXTENSION_CONFIGS": { + "markdown.extensions.toc": { + "toc_depth": 2 + } + }, }, }