From 9a4deaf001bdfd7df40fa9d88e6ea57890ab05ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Thu, 11 Dec 2025 10:56:28 +0100 Subject: [PATCH] zensical:fix - Resolve pymdownx.superfences custom fence validators #184 Signed-off-by: pawamoy --- python/zensical/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/zensical/config.py b/python/zensical/config.py index 884a729..c1e5604 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -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