Zulip Chat Archive

Stream: general

Topic: Github maths markdown


Eric Rodriguez (May 20 2022 at 14:23):

FYI:

https://github.blog/2022-05-19-math-support-in-markdown/

Will be nice for PR descriptions!

Kevin Buzzard (May 20 2022 at 15:09):

Why does Zulip make me type $$ for inline math when LaTeX and now this are happy with $?

Eric Wieser (May 20 2022 at 15:12):

Maybe because business users don't want their 100fromyesterdayand100 from yesterday and 50 from today to look awful?

Eric Wieser (May 20 2022 at 15:12):

Although it looks like they already require spaces around the $$s anyway

Arthur Paulino (May 20 2022 at 15:13):

$$ is also the pattern in mathjax so my hypothesis is that they're using it under the hood

Reid Barton (May 20 2022 at 15:14):

I think it was just a conservative position for the reason Eric mentioned, but it would probably actually be fine in practice to allow single $s.

Matthew Ballard (May 20 2022 at 15:29):

Arthur Paulino said:

$$ is also the pattern in mathjax so my hypothesis is that they're using it under the hood

They use katex but it is functionally the same. If ever they allow communities/users to use custom tex macros (did this ever go through?), then it is possible they could be convinced to allow custom delimiters.

Reid Barton (May 20 2022 at 15:34):

The spacing (or lack thereof) around == on that blog post is strange

Reid Barton (May 20 2022 at 15:34):

x=b±b24ac2ax = {-b \pm \sqrt{b^2-4ac} \over 2a}

Reid Barton (May 20 2022 at 15:35):

all the spacing really

Kyle Miller (May 20 2022 at 15:44):

The spacing is still weird in the live version:

image.png

image.png

Kyle Miller (May 20 2022 at 15:44):

The op and bin classes in math mode are supposed to have spacing to either side of them.

Horațiu Cheval (May 23 2022 at 17:18):

Can one use things like \mathbb{R} using this feature on Github? If it's possible, I can't figure out how to make it work

Horațiu Cheval (May 23 2022 at 17:24):

Nevermind, the problem was that apparently one can not use math in markdown lists. It works outside


Last updated: Dec 20 2023 at 11:08 UTC