mattermost / mattermost-plugin-ai

Mattermost Copilot plugin supporting multiple LLMs
https://mattermost.com/copilot
Apache License 2.0
135 stars 26 forks source link

🐛 bug: LaTeX is not rendered in AI responses #248

Open a3957273 opened 1 month ago

a3957273 commented 1 month ago

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.

azigler commented 4 weeks ago

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.

cc @crspeller