Browse Source

feat: revert Blackfriday math workaround

Also see 255b5e8462ee146adb7ead4f0abf023e83911cad
George Cushen 6 years ago
parent
commit
c8832e3881
1 changed files with 1 additions and 12 deletions
  1. 1 12
      assets/js/mathjax-config.js

+ 1 - 12
assets/js/mathjax-config.js

@@ -3,19 +3,8 @@ window.MathJax = {
   tex2jax: {
     inlineMath: [['$', '$'], ['\\(', '\\)']],
     displayMath: [['$$', '$$'], ['\\[', '\\]']],
-    processEscapes: false,
-    skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']  // Remove `code` (required for inline math).
+    processEscapes: false
   },
   TeX: {noUndefined: {attributes: {mathcolor: 'red', mathbackground: '#FFEEEE', mathsize: '90%'}}},
   messageStyle: 'none'
 };
-
-MathJax.Hub.Queue(function() {
-  // Fix inline math wrapped in <code> tags after MathJax finishes running.
-  // This is a workaround to overcome a shortcoming of Blackfriday Markdown.
-  // See discussion in Hugo Docs.
-  let all = MathJax.Hub.getAllJax(), i;
-  for (i = 0; i < all.length; i += 1) {
-    all[i].SourceElement().parentNode.className += ' has-jax';
-  }
-});