You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,41 @@
1
1
# Rendered math (MathJax) with Slack's desktop client
2
2
3
-
[Slack](https://slack.com) does not display rendered math. This script injects [MathJax](https://www.mathjax.org) into Slack's desktop client, which allows you to write nice-looking inline- and display-style math using familiar TeX/LaTeX syntax. You can also edit equations after you've posted them.
3
+
[Slack](https://slack.com) does not display rendered math. The `math-with-slack` script allows you to write nice-looking math using familiar TeX syntax by injecting [MathJax](https://www.mathjax.org) into Slack's desktop client. This approach has several advantages over the plugin/bot solution:
4
+
5
+
* You can write both inline- and display-style equations.
6
+
* You can edit equations after you've posted them.
7
+
* Nothing is sent to external servers for rendering.
8
+
9
+
The downside is that equations are not rendered for team members without the MathJax injection.
[Download this script](https://github.com/fsavje/math-with-slack/releases/download/v0.2/math_with_slack.bat) and doubleclick to run. Alternatively, run it in the command prompt with:
32
+
[Download the script](https://github.com/fsavje/math-with-slack/releases/download/v0.2.1/math_with_slack.bat) and double-click to run. Alternatively, run it in the command prompt with:
27
33
28
34
```shell
29
35
math_with_slack.bat
30
36
```
31
37
32
-
(You'll most likely get a security warning from Windows since the script was downloaded from Internet.)
38
+
(Windows will probably give you a security warning when running the script since it's downloaded from Internet.)
33
39
34
40
35
41
### Uninstall
@@ -47,12 +53,12 @@ math_with_slack.bat -u
47
53
48
54
### Updating Slack
49
55
50
-
When you update the Slack app, it might overwrite the code injected by the script. If the client stops rendering math after an update, re-run the script as above and it should work again.
56
+
The code injected by the script might be overwritten when you update the Slack app. If your client stops rendering math after an update, re-run the script as above and it should work again.
51
57
52
58
53
59
### If Slack cannot be found
54
60
55
-
If you've installed Slack in some exotic place, the script might not find the installation by itself and you need to specify the location of Slack's `app.asar.unpacked/src/static` folder as a parameter:
61
+
If you've installed Slack in some exotic place, the script might not find the installation by itself or it might find the wrong installation. In such cases, you need to specify the location of Slack's `app.asar.unpacked/src/static` folder as a parameter:
0 commit comments