diff --git a/package.json b/package.json
index 6f0dd53e..fba2a647 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.2.3",
+ "mermaid": "~8.4.6",
"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 a36b2cdb..187e3984 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 0ae62bf9..961f0e56 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 9fefe4b4..c38c1a15 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -99,7 +99,7 @@
-
+