diff --git a/package.json b/package.json
index 9d7e16f1e..e38a4c721 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
"markdown-pdf": "^10.0.0",
"mathjax": "~2.7.6",
"mattermost": "^3.4.0",
- "mermaid": "~8.4.6",
+ "mermaid": "~8.5.1",
"meta-marked": "git+https://github.com/codimd/meta-marked#semver:^0.4.5",
"method-override": "^2.3.7",
"minimist": "^1.2.0",
diff --git a/public/views/codimd/foot.ejs b/public/views/codimd/foot.ejs
index 187e39847..6d755b01c 100644
--- a/public/views/codimd/foot.ejs
+++ b/public/views/codimd/foot.ejs
@@ -10,7 +10,7 @@
-
+
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 961f0e565..74451a4c8 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -91,7 +91,7 @@
-
+
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index c38c1a158..5feba93fb 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -99,7 +99,7 @@
-
+