diff --git a/assets/js/mathjax-setup.js b/assets/js/mathjax-setup.js index c821206..53f40b4 100644 --- a/assets/js/mathjax-setup.js +++ b/assets/js/mathjax-setup.js @@ -1,5 +1,26 @@ window.MathJax = { tex: { tags: "ams", + inlineMath: [ + ["$", "$"], + ["\\(", "\\)"], + ], + }, + options: { + renderActions: { + addCss: [ + 200, + function (doc) { + const style = document.createElement("style"); + style.innerHTML = ` + .mjx-container { + color: inherit; + } + `; + document.head.appendChild(style); + }, + "", + ], + }, }, };