Allow latex inline ($ latex here $)
Currently you have to do
latex here
It would be handy if you could do
$ latex here $ too
-
Malte Skambath commented
If at any point in time this request will be considered, one should also directly consider the use of matchjax as requested here https://mattermost.uservoice.com/forums/306457-general/suggestions/40576936-use-dollar-signs-for-mathjax-input-instead-of-pars
Both requests seem to be related.
-
Sebastian S. commented
any progress? rocket.chat supports \( ... \)
-
Michaël Cadilhac commented
My understanding is that developers usually hate the $ ... $ construction, as it breaks a lot of things; however, this is and will always be the default construct for people using math. Going \( ... \) is even unheard of by lots of daily LaTeX users... In any case, math researchers that would like to use Mattermost are definitely willing to sacrifice any kind of stability in favor of having inline latex. Hence in the meantime, maybe someone can provide us with a quick and dirty nonofficial patch that would enable that? That'd be rad.
Cheers;
M. -
Alexei commented
The current LaTeX implementation is a great first step but it breaks the markdown code-block syntax and is very awkward to use. It feels like a patch. In mathematical groups the symbols are part of the conversation not a separate block of code. An equation as a separate block is used when it's big and unwieldy to make it more readable but otherwise equations and symbols are treated as part of the sentence and it should be possible to mix with other markdown structures like lists.
It would be awesome to support \(...\) for inline and \[...\] for display (or the TeX short cuts $...$ and $$...$$). Even better would be also supporting some \begin/\end environments like align and gather of AMS math.
-
Anton Akhmerov commented
Update: gitlab now supports katex (incl. inline). Their preferred syntax was chosen to be both easy to integrate without interfering with markdown pipeline, and to be reasonably similar to regular latex. For the display math they use
```math
x
```
while for inline math they use $`x`$. (In both cases "x" is the latex payload.) This should simplify the implementation of inline syntax. -
Anton Akhmerov commented
Relevant discussion: https://github.com/mattermost/platform/pull/1439