zensical:fix - Resolve pymdownx.superfences custom fence validators

#184

Signed-off-by: pawamoy <dev@pawamoy.fr>
This commit is contained in:
Timothée Mazzucotelli
2025-12-11 10:56:28 +01:00
parent cdc62cd7aa
commit 9a4deaf001
+2
View File
@@ -448,6 +448,8 @@ def _apply_defaults(config: dict, path: str) -> dict:
for fence in superfences.get("custom_fences", []):
if isinstance(fence.get("format"), str):
fence["format"] = _resolve(fence.get("format"))
if isinstance(fence.get("validator"), str):
fence["validator"] = _resolve(fence.get("validator"))
# Ensure the table of contents title is initialized, as it's used inside
# the template, and the table of contents extension is always defined