Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mermaid2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import os
import functools


from mkdocs.plugins import BasePlugin
Expand Down Expand Up @@ -178,6 +179,8 @@ def activate_custom_loader(self) -> bool:
custom_fences = superfence_config.get('custom_fences', [])
for fence in custom_fences:
format_fn = fence.get('format')
if type(format_fn) is functools.partial:
format_fn = format_fn.func
if format_fn.__name__ == CUSTOM_FENCE_FN:
self._activate_custom_loader = True
info("Found '%s' function: "
Expand Down