In DT4 Pro and DTTG, the default AI chat window uses Markdown (md) format. However, the current output is not ideal for displaying mathematical formulas, and it is recommended that support for mathematical formulas (md format) be optimized.
$$
\hat{\beta}_{\text{ridge}}=(xTX +\lambda 1)^{-1} xTy
$$
This is specifically for the AI chat window? Is this related to “the problems” of using MathJax and Markdown together? (I think \(math\) needs to be written \\(math\\) to render correctly.)
The output is controlled by the AI, not by DEVONthink. Which provider and model did you use and how did the (saved) Markdown source look like?
Gpt-4.1, ollama and other open source models are not very good at rendering math formulas. After saving the Markdown source code of AI output and opening it through Typora, the math formulas can basically be displayed normally.Such as:
$$
-2XT(y - X\beta) + 2\lambda\beta = 0
XTX\beta + \lambda I \beta = XTy
$$
You have enabled MathJax? If I cut and paste the math formulas into a md-document then the math renders in DT4 Pro (at least after deleting the blank line).
Could you send me a copy of the source or post it here (enclosed in three backticks)? Thanks.