Meanwhile, while the DT Team is working on a fix for this issue, I found this interim solution just last night:
- Deactivate DT’s own MathJax support in the settings
- Create a new text file called, e.g., DT_java.js (you can simply use textedit for this) and insert and save the following content:
window.MathJax = {
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
},
jax: ["input/TeX","input/MathML","input/AsciiMath","output/CommonHTML"],
extensions: [
"tex2jax.js",
"mml2jax.js",
"asciimath2jax.js",
"MathMenu.js",
"MathZoom.js",
"AssistiveMML.js",
"[Contrib]/a11y/accessibility-menu.js"
],
TeX: {
extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"],
equationNumbers: {
autoNumber: "AMS"
}
}
};
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML";
document.head.appendChild(script);
- Back in DT’s settings, choose this newly created file in the “JavaScript” section (it’s in tab “Files” ⟶ “Markdown”)
This bypasses the current broken rendering and the inline LaTeX display using “$” works again when there is more than one LaTeX command on a single line:
This worked for mit in DT Pro 4.2.2. Unfortunately, this solution does not work on DTTG; I tried with different variation and mathjax version.

