thisiscam / math-with-slack

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

Double underscore converts to italic font #19

Open albinahlback opened 3 years ago

albinahlback commented 3 years ago

On Linux, when writing two underscores for subscripts, it converts the text in between to italics and also removes the underscores. This is really hard to work with.

Example: a_1 y = z x_1 turns to a<1 y = z x>1 where <·> means it is written in italic, which also removes the support for displaying math.

Is it possible to override Slack on this?

thisiscam commented 3 years ago

I can look into this. But to clarify, you meant that this occurs during typing ?

albinahlback commented 3 years ago

I can look into this. But to clarify, you meant that this occurs during typing ?

Correct.

thisiscam commented 3 years ago

I looked into this a bit, and seems like Mac has a different behavior compared to what you described in Linux. I can try with a Linux machine and see if I can reproduce.

In the mean time, can you try Preferences -> Advanced -> turn on "Format message with Markup"? This seems to turn off the auto formatting entirely, and (always) assume that you are writing markup. Does this satisfies your need?

albinahlback commented 3 years ago

Yes, it does! Thank you!