diff --git a/layouts/partials/scripts/other.html b/layouts/partials/scripts/other.html
index 8c4153bb..51f0996e 100644
--- a/layouts/partials/scripts/other.html
+++ b/layouts/partials/scripts/other.html
@@ -1,5 +1,5 @@
-{{ if in .Plain "mermaid" }}
+{{ if in .Content "mermaid" }}