Closed v0lta closed 1 year ago
It seems the indices are a problem in the current version,
$$\tilde{{x}}{ijk} = \frac{x{ijk} - \mu}{\sigma}$$
worked in March. Now a simplification to
$$\tilde{{x}} = \frac{x - \mu}{\sigma}$$
is required to make it work. This is very unfortunate because I happen to maintain a course with a Github classroom that relies on this feature. Without it, the math in all task readmes looks broken.
I think I understand this now. Github needs an escape slash now to understand the underscore:
$$\tilde{{x}}_{ijk} = \frac{x_{ijk} - \mu}{\sigma}$$
That is use \_
instead of _
in math formulae for correct results.
Unfortunately vscodes
preview feature does not understand the escape slash. Having to choose either a correct display on github.com
or within vscode
is painful.
Github and vscode use different markdown specifications, so this behaviour is expected. The two won't work together: Does VS Code support GitHub Flavored Markdown?
No, VS Code targets the CommonMark Markdown specification using the markdown-it library. GitHub is moving toward the CommonMark specification, which you can read about in this update.
Consider, for example, the formula below:
Vscode's preview feature will render the formula correctly. However, the same
.md
file won't be displayed correctly ongithub.com
.A larger example is available at:
https://github.com/Deep-Learning-with-Jax/day_04_exercise_statistics/blob/main/README.md
As you can see when scrolling down. Github.com gets the math wrong. https://github.com/Deep-Learning-with-Jax/day_04_exercise_statistics/blob/main/README.pdf was generated by pandoc which sets the formulae correctly.
Consequently, I think this is a GitHub problem, I am opening an issue here.