Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support latex #1294

Closed
nilsocket opened this issue Sep 18, 2019 · 25 comments
Closed

Support latex #1294

nilsocket opened this issue Sep 18, 2019 · 25 comments

Comments

@nilsocket
Copy link

It's 2019 now, Gitlab already has latex support in it's markdown flavor.

  1. latex code block
  2. latex inline

This feature is being requested from 2015.

So please, consider to support latex at-least now.

@edsonayllon
Copy link

I'd also like to see LaTeX for math equations.

@devmessias
Copy link

That would be great!

@MySiilf
Copy link

MySiilf commented Feb 13, 2020 via email

@drorata
Copy link

drorata commented Feb 27, 2020

If I understand correctly, a markdown file is rendered by commonmarker as mentioned here. This means, that if math support (LaTeX) is desired, actually there are two options:

Do I understand it correctly @kivikakk ?

Maybe related is #897

@kivikakk
Copy link
Contributor

I think you’ve understood correctly, except that it’s extremely unlikely GitHub would change from commonmarker since they maintain its upstream. I no longer work at GitHub so I can’t really help further.

@drorata
Copy link

drorata commented Feb 27, 2020

Do you mean https://github.com/github/cmark-gfm as the upstream?

@kivikakk
Copy link
Contributor

kivikakk commented Feb 27, 2020 via email

@yves-chevallier
Copy link

I also wish GH to support equations in README.md. This a feature I would use every single day...

Just support equations like in Stack Exchange :

    $$x_{1,2} = -b\frac{\sqrt{b^2-4\cdot a \cdot c}{2a}$$
@evgenyneu
Copy link

Maybe related is #897

This issue was closed. Looks like Github Markdown people try to simply dodge the issue using "it's not my problem" argument and directing the complaints to a different department (which does the same thing). Pretty sad.

@kaelzhang
Copy link

kaelzhang commented Mar 6, 2021

Years have passed. Any updates for this?

If latex is supported, github will have the potential to become another ArXiv and more


And also, maybe github should support online jupyter notebook for all languages

@twang15
Copy link

twang15 commented Apr 7, 2021

MS owns GitHub now..., will eventually ruin it.

@bschatz
Copy link

bschatz commented Apr 8, 2021

Markdown was never designed for extensions,
so it is probably to much effort to extend gfm for that.

Better choice here is to use RestructuredText/Sphinx
that already supports LaTex,
unfortunately github seems not to support rst very well.

@yves-chevallier
Copy link

@bschatz You don't realize how much this extension can change the world. It is not a matter of how much work it is but what this feature can unlock. All the scientific community could then use markdown (on GitHub), to display equations.

We all dream of being able to display equations on Markdown. It seems the only issue is a matter of security ? Then the picture could be rendered backend. Is it a problem?

@jessemodesto
Copy link

Equations used to work using this method:

https://gist.github.com/a-rodin/fef3f543412d6e1ec5b6cf55bf197d7b

However, just yesterday, none of the images render anymore. Equation formatting used to work just like LateX.

@cossio
Copy link

cossio commented Jan 27, 2022

I would also like to have this.
Any updates?

@j7168908jx
Copy link

As requested by my boss, I've patched a little of commonmarker to support part of LaTeX math equations (using directly $ ... $ and $$ ... $$). If anyone is interested, please see my forked repo: https://github.com/j7168908jx/commonmarker

@abalter
Copy link

abalter commented Mar 30, 2022

Please add this feature!

@Masoudahmadi304
Copy link

Masoudahmadi304 commented Mar 31, 2022 via email

@hotohoto
Copy link

$y = ax + b$ is rendered correctly.

but,,,

  • $y = ax + b$

seems not working?

@drorata
Copy link

drorata commented May 20, 2022

I can also confirm that:

  • or maybe $z^2$

doesn't work. Probably this requires a new bug report ( #1546 )

@cossio
Copy link

cossio commented May 20, 2022

Does this look too small?

$$\sum_{i=1}^N f_i$$

It does to me. Is there a way to make equations larger?

@abalter
Copy link

abalter commented May 20, 2022

@cossio

$$2 \times \sum_{i=1}^N f_i$$

That's a little larger.

This should be quite a bit larger.

$$\sum_{i=1}^N (f_i)^2$$

@abalter
Copy link

abalter commented May 20, 2022

@drorata Seems to work now.

$z^2$

@pkienzle
Copy link

pkienzle commented Jun 30, 2022

Trying with unicode for some of the characters (∫_0^∞ \sum_{i=1}^n 2 π i q⋅r/ λ dr)

$$∫_0^∞ \sum_{i=1}^n 2 π i q⋅r/ λ \ {\mathrm d}r$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet