diff --git a/src/resources/formats/dashboard/template.html b/src/resources/formats/dashboard/template.html
index e778d66c6d..b66e02f0a5 100644
--- a/src/resources/formats/dashboard/template.html
+++ b/src/resources/formats/dashboard/template.html
@@ -16,7 +16,7 @@
$if(math)$
$if(mathjax)$
-
+
$endif$
$math$
$endif$
diff --git a/src/resources/formats/html/pandoc/html.template b/src/resources/formats/html/pandoc/html.template
index acc90d790e..bc8a48a6e8 100644
--- a/src/resources/formats/html/pandoc/html.template
+++ b/src/resources/formats/html/pandoc/html.template
@@ -28,7 +28,7 @@ $for(header-includes)$
$endfor$
$if(math)$
$if(mathjax)$
-
+
$endif$
$math$
$endif$
diff --git a/src/resources/formats/html/pandoc/template.html b/src/resources/formats/html/pandoc/template.html
index 2822c4b3f4..36e914f409 100644
--- a/src/resources/formats/html/pandoc/template.html
+++ b/src/resources/formats/html/pandoc/template.html
@@ -16,7 +16,7 @@
$if(math)$
$if(mathjax)$
-
+
$endif$
$math$