gocast
gocast copied to clipboard
Allow LaTeX snippets in chat
Unsure if this is really something we should implement depending on the complexity of a potential solution, but messages like this:
Would look much better if we allowed creating latex snippets. IMO this would require a more sophisticated chat input which I'm not sure we actually want.
I implemented this once with https://katex.org/, worked pretty well. Should be quite straight forward to add it.
Nice, so that renders the snippets in the frontend, right?
Yes, it renders in the browser, but it did feel pretty light weight.

~~https://pkg.go.dev/gopkg.in/oi-archive/blackfriday.v2#section-readme Technically, blackfriday already supports MathJax and MathJax supports LaTeX like syntax afaik. That would be an alternative, I suppose.~~ Nevermind, just a weird old repo.