Remove Italics from MathJax

I am looking for a way to remove the italics from the MathJax formatting on a specific card type. I have been using MathJax to display parsings for Greek verbs:

These can get somewhat complicated:

I have found this the best way to simplify and display this information. However, all the text is automatically italicized because this is not the intended purpose, but it does not look good to have that much text italicized. To fix this, I have to wrap everything in \text{}. But \text{} cannot have any formatting within it, so I have to wrap every line of text, which becomes cumbersome when I have to do this up to ten times per card, and I have a couple hundred of these cards. I am looking for a simpler solution I can apply to the card formatting to remove the italics so I can simplify the MathJax. I will only ever use MathJax in this way for this card type.

I have looked at the documentation, but I am not familiar enough with MathJax to understand what I am supposed to be doing. The other forum posts related to MathJax also did not yeild any helpful results for this specific issue. I went back and forth with ChatGPT for about 30 minutes, but it only provided scripts that do nothing or break the rendering of the whole card. Wrapping the entire MathJax expression in \mathrm{} removes the italics from the top-level text, but nothing within the arrays, which is the purpose of using MathJax in this case. My preferred solution would be a single script, but if it is not possible with the way Anki renders MathJax, I will be content to

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.