Render KaTeX formatting during Janitor chats.
Allows the use of KaTeX formatting in chats without disturbing other elements!
Use [$ and $] as the left and right brackets of KaTeX format. (Specifically these to prevent '$' from getting confused.) Alternatively, $$ as both, \( and \), or \[ and \] work too.
I'm unsure of all the uses of KaTeX formatting, but I often refer to this website for guidance. My biggest tip is to use the backslash, '\', before a space in KaTeX format to ensure it is a space.
WRONG - [$Example of incorrect spacing.$]
RIGHT - [$Example\ of\ corrext\ spacing.$]
ChatGPT wrote all the code (i have no clue how to code lol)