From ab69e1ba1cf9617a70f2a7e1b5407f53b4aa1f01 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 13 Nov 2025 10:25:21 +0100 Subject: [PATCH] zensical:fix - pymdownx.blocks crashes build Signed-off-by: squidfunk --- python/zensical/config.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/zensical/config.py b/python/zensical/config.py index bdbe123..f1216d7 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -610,7 +610,13 @@ def _convert_markdown_extensions(value: any): if "pymdownx" in value: pymdownx = value.pop("pymdownx") for ext, config in pymdownx.items(): - value[f"pymdownx.{ext}"] = config + # Special case for blocks extension, which has another level of + # nesting. This is the only extension that requires this. + if ext == "blocks": + for block, config in config.items(): + value[f"pymdownx.{ext}.{block}"] = config + else: + value[f"pymdownx.{ext}"] = config # Extensions can be defined as a dict if isinstance(value, dict):