If the AI generates latex in a triple backtick code block Mattermost does not render it correctly. If you copy the response into a normal chat box, it renders it correctly. I assume this is due to the custom chat renderer the AI plugin uses.
Steps to reproduce
Ask the AI something like Please generate valid latex in a markdown multi-line code block that displays the Pythagorean formula.
This is similar to #219, about rendering Markdown. I believe LaTeX is similarly disabled in AI responses currently, but maybe that could be a configurable option for the bot.
Description
If the AI generates latex in a triple backtick code block Mattermost does not render it correctly. If you copy the response into a normal chat box, it renders it correctly. I assume this is due to the custom chat renderer the AI plugin uses.
Steps to reproduce
Ask the AI something like
Please generate valid latex in a markdown multi-line code block that displays the Pythagorean formula
.