fsavje / math-with-slack

Rendered math (MathJax) with Slack's desktop client
MIT License
431 stars 62 forks source link

Fixed problem with editing messages #15

Closed gauss256 closed 7 years ago

gauss256 commented 7 years ago

I've only tested the Windows version. And I don't claim to completely understand why this works. I added a line to prevent MathJax from trying to render edit fields thinking that other fixes would be needed too, but this seems to fix everything.

In particular, (1) LaTeX does not disappear after any length of time while a new message is being created, (2) when you edit an existing message, the LaTeX code is restored within $ delimiters and no duplication of LaTeX happens.

Willem3141 commented 7 years ago

I've only tested the Windows version.

It also works perfectly on the Linux version. Thanks!

fsavje commented 7 years ago

Excellent work @gauss256 ! Thank you for taking the time to fix this.