Skip to content

Commit

Permalink
v3.2.3: fixed Mermaid not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTham committed Nov 26, 2023
1 parent d4c6a28 commit e725791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ All commands are run from the root of the project, from a terminal:
- 3.2.2: Minor enhancements:
- Updated packages
- Fixed json.ts return type for search
- 3.2.3: Maintenance:
- Fixed mermaid v9 no longer working by upgradig to latest version of mermaid
2 changes: 1 addition & 1 deletion src/layouts/base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const { frontmatter } = Astro.props
{frontmatter.extra?.includes('mermaid') &&
<script type="module">
// import mermaid from 'mermaid';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
mermaid.initialize({startOnLoad: true});
</script>
}
Expand Down

0 comments on commit e725791

Please sign in to comment.