diff --git a/solr/solr-ref-guide/src/_config.yml.template b/solr/solr-ref-guide/src/_config.yml.template
index 4d91c84986a..36c92edc35e 100755
--- a/solr/solr-ref-guide/src/_config.yml.template
+++ b/solr/solr-ref-guide/src/_config.yml.template
@@ -95,3 +95,4 @@ asciidoctor:
icons: "font"
source-highlighter: "rouge"
rouge-theme: "thankful-eyes"
+ stem:
diff --git a/solr/solr-ref-guide/src/_includes/mathjax-support.html b/solr/solr-ref-guide/src/_includes/mathjax-support.html
new file mode 100644
index 00000000000..8d812b5e393
--- /dev/null
+++ b/solr/solr-ref-guide/src/_includes/mathjax-support.html
@@ -0,0 +1,22 @@
+{% comment %}This adds MathJax support for rendering math formulae and equations in HTML.{% endcomment %}
+
+
+
diff --git a/solr/solr-ref-guide/src/_layouts/default.html b/solr/solr-ref-guide/src/_layouts/default.html
index 37c7173fe09..5b929bc2e0e 100755
--- a/solr/solr-ref-guide/src/_layouts/default.html
+++ b/solr/solr-ref-guide/src/_layouts/default.html
@@ -57,5 +57,7 @@
+{% include mathjax-support.html %}
+