Skip to content

Commit

Permalink
Fix: mermaid diagrams with parameters in site config
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Nov 23, 2022
1 parent f0a06ef commit 955edaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
return;
}

var params = {{ . | jsonify | safeJS }};
var params = {{ .Site.Params.mermaid | jsonify | safeJS }};

// site params are stored with lowercase keys; lookup correct casing
// from Mermaid default config.
Expand Down

0 comments on commit 955edaa

Please sign in to comment.