Skip to content

Commit

Permalink
Added integrity check to mermaid.js
Browse files Browse the repository at this point in the history
  • Loading branch information
george-gca authored Jan 27, 2024
1 parent a7d6b37 commit 3ec0ff4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/scripts/mermaid.liquid
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% if page.mermaid and page.mermaid.enabled %}
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"
integrity="sha256-TtLOdUA8mstPoO6sGvHIGx2ceXrrX4KgIItO06XOn8A="
crossorigin="anonymous"
></script>
{% if page.mermaid.zoomable %}
<script src="https://d3js.org/d3.v7.min.js"></script>
{% endif %}
Expand Down

0 comments on commit 3ec0ff4

Please sign in to comment.