mirror of
https://github.com/zensical/zensical.git
synced 2026-05-03 17:40:31 +00:00
zensical:fix - Resolve pymdownx.superfences custom fence validators
#184 Signed-off-by: pawamoy <dev@pawamoy.fr>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user