After the rendering of inline LaTeX equations became broken in DEVONthink To Go 4.0.3 (and still is in the latest version 4.0.4), the new update of the DEVONthink desktop app to version 4.2 from this week has now also broken both inline and block LaTeX equations. This was not an issue before and must therefore have been introduced by the most recent update.
This is what it currently looks like:
For comparison, the same raw Markdown and LaTeX in Obsidian:
Of course, I do not want to presume to “play programmer”. However, perhaps the issue in both DEVONthink and DEVONthink To Go is related to how MathJax is integrated. With the default integration, LaTeX equations delimited by $ and $$ are not rendered. This only becomes possible with a small extension:
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
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"
}
}
});
</script>
Since LaTeX formulas using $ and $$ did not cause any problems in previous versions of DEVONthink and DEVONthink To Go, perhaps something was changed or overridden in the recent updates?


