Skip to content

Commit

Permalink
Merge pull request #79 from julienlavergne/patch-1
Browse files Browse the repository at this point in the history
Fix extra_javascript config reading for mkdocs 1.5.0, see #80
  • Loading branch information
fralau authored Jul 27, 2023
2 parents 8e4fcbf + 1f2e59d commit 8b93e72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mermaid2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def extra_mermaid_lib(self) -> str:
"""
Provides the mermaid library defined in mkdocs.yml (if any)
"""
extra_javascript = self.full_config.get('extra_javascript', [])
# 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
if libname(lib) == 'mermaid':
Expand Down

0 comments on commit 8b93e72

Please sign in to comment.