diff --git a/IPython/nbconvert/templates/html/full.tpl b/IPython/nbconvert/templates/html/full.tpl
index c16fc35..df1a486 100644
--- a/IPython/nbconvert/templates/html/full.tpl
+++ b/IPython/nbconvert/templates/html/full.tpl
@@ -38,7 +38,7 @@ pre {
-mathjax()
+{{ mathjax() }}
{%- endblock header -%}
diff --git a/IPython/nbconvert/templates/html/slides_reveal.tpl b/IPython/nbconvert/templates/html/slides_reveal.tpl
index 41601c1..e24ec8d 100644
--- a/IPython/nbconvert/templates/html/slides_reveal.tpl
+++ b/IPython/nbconvert/templates/html/slides_reveal.tpl
@@ -141,7 +141,7 @@ dependencies: [
-mathjax()
+{{ mathjax() }}