diff --git a/common/templates/mathjax_include.html b/common/templates/mathjax_include.html
index 799a132a3e49..31a5358ece76 100644
--- a/common/templates/mathjax_include.html
+++ b/common/templates/mathjax_include.html
@@ -1,10 +1,19 @@
-##
+## mako
## File: templates/mathjax_include.html
##
## Advanced mathjax using 2.0-latest CDN for Dynamic Math
##
## This enables ASCIIMathJAX, and is used by js_textbox
+
+%if mathjax_mode is not Undefined and mathjax_mode == 'wiki':
+
+%else:
+%endif