diff --git a/src/resources/markdown_template.html b/src/resources/markdown_template.html
index 0ff658cb..474ca42c 100644
--- a/src/resources/markdown_template.html
+++ b/src/resources/markdown_template.html
@@ -32,7 +32,8 @@
diff --git a/src/resources/mathjax_preview.js b/src/resources/mathjax_preview.js
index 4c247261..017280e3 100644
--- a/src/resources/mathjax_preview.js
+++ b/src/resources/mathjax_preview.js
@@ -71,6 +71,7 @@ var previewMathJax = function(identifier, id, timeStamp, text, isHtml) {
if (text.indexOf('$$') !== -1) {
isBlock = true;
}
+ MathJax.texReset();
MathJax
.typesetPromise([p])
.then(function () {
diff --git a/src/resources/mathjax_preview_template.html b/src/resources/mathjax_preview_template.html
index 2c962053..da07a7ee 100644
--- a/src/resources/mathjax_preview_template.html
+++ b/src/resources/mathjax_preview_template.html
@@ -13,7 +13,8 @@