Skip to content

Commit

Permalink
Fix extra_javascript config reading for mkdocs 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
julienlavergne authored Jul 27, 2023
1 parent 8e4fcbf commit 1c1ee3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mermaid2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def extra_mermaid_lib(self) -> str:
"""
Provides the mermaid library defined in mkdocs.yml (if any)
"""
extra_javascript = self.full_config.get('extra_javascript', [])
extra_javascript = map(str, self.full_config.get('extra_javascript', []))
for lib in extra_javascript:
# get the actual library name
if libname(lib) == 'mermaid':
Expand Down

0 comments on commit 1c1ee3a

Please sign in to comment.