zensical:fix - pymdownx.blocks crashes build

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2025-11-13 10:25:21 +01:00
parent 77438ff2a1
commit ab69e1ba1c
+7 -1
View File
@@ -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):