I have a workgroup that uses the Slack chatting app/website/destop version to communicate, and the desire to send usable mathematical expressions across to friends is something we'd like to do there. While it doesnt seem like there is any official implementation of LaTeX or a plugin for it there are many ways for DIY integration: enter image description here

I wanted to know how to get LaTeX rendering working on Slack, be it through integrations and/or customization of Slack and/or through web hooking. The only thing I'd prefer not to do is hook out to another website, make the render into a picture, and then hook it back into Slack.

  • Please note: Fredrik Savje's accepted answer links to his GitHub repo for a script that no-longer works since Slack v.4. However, Savje's repo points to thisiscam's repo which has an updated working version of the script. (Unfortunately, the edit queue for Savje's answer here on StackExchange is full, so I can't edit it.) After re-installing Slack per this issue, the new script worked for me on MacOS. – Jess Riedel Nov 3 '20 at 20:30

I made a small script that installs MathJax in Slack's desktop client (basically the same solution as goatandsheep's, but with some Electron hacking). No server needed, supports both inline and display math, and equations can be edited.


Math in Slack

  • This worked immediately. – Jess Riedel Feb 18 '18 at 18:11
  • This would be pretty awesome, but unfortunately doesn't work for me on Mac Sierra. :( Any pointers would be great. – space_cadet Oct 18 '18 at 6:24
  • @space_cadet I'm sorry to hear that it does work for you. Please file a bug report on github and describe your problem as detailed as possible: github.com/fsavje/math-with-slack/issues – Fredrik Savje Oct 18 '18 at 19:43
  • Works fine in Mac Mojave (Jan 2019). Thanks a million! – Tim Erickson Jan 14 '19 at 18:07
  • 2
    Unfortunately Slack 4.0.0 has killed the script. Hoping for a fix. – level1807 Dec 8 '19 at 3:58

I've written a Tampermonkey / Greasemonkey script that you can install as an extension that will render it.

Edit: It's had trouble rendering on streams, since it compiles the content at page load. If someone knows how to do that, that would be awesome.

Edit: MathJax CDN has shut down.

  • Thanks, I'm looking over that now. Any chance you could add a little more clarification text to the installer it for people who still dont know know Slack inside and out. – user507974 Oct 17 '15 at 23:15
  • 1. Download Tampermonkey for Chrome or Greasemonkey for Firefox 2. Add new userscript. 3. Paste the contents of the file into it. – Kemal Ahmed Dec 15 '15 at 4:07
  • Have others had success using the Greasemonkey script? For me, it appears to be installed but does not render equations in my Slack forum. – half-pass May 15 '16 at 12:13
  • MathJax has not shut down. The only think that's shut down is one of their CDN. – Alessandro Cosentino Nov 22 '18 at 11:00
  • @AlessandroCosentino thank you for the correction. They have not shut down, but their CDN has. They are using CloudFlare CDN now. – Kemal Ahmed Nov 23 '18 at 16:31

There is a slack plugin on github, check it out https://github.com/colbygk/mathslax

Also there are Latex plugins from community mentioned by Slack itself https://api.slack.com/community



There is now an app for this on the slack and Rocket.Chat app store.


  • 1
    It does not look like it parses Latex. – Yauhen Yakimenka May 13 '20 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.