diff --git a/mermaid2/plugin.py b/mermaid2/plugin.py index 580a19a..f72f17c 100755 --- a/mermaid2/plugin.py +++ b/mermaid2/plugin.py @@ -96,6 +96,7 @@ def extra_mermaid_lib(self) -> str: """ Provides the mermaid library defined in mkdocs.yml (if any) """ + # as of mkdocs 1.5, extra_javascript is a list of objects; convert to string extra_javascript = map(str, self.full_config.get('extra_javascript', [])) for lib in extra_javascript: # get the actual library name