There seems no authoritative source on how to embed Latex math expression in Markdown.
At least It's not part of CommonMark spec.
Currently VSCode markdown preview support inline math expression between $ pair
and block math expression between $$ pair. But it looks like GitHub and GitLab support another
inline math expression that use combination of $ and backticks.
inline math (without backtick): $1 + 2 = 3$
inline math (with backtick): $`1 + 2 = 3`$
Background
There seems no authoritative source on how to embed Latex math expression in Markdown. At least It's not part of CommonMark spec.
Currently VSCode markdown preview support inline math expression between
$
pair and block math expression between$$
pair. But it looks like GitHub and GitLab support another inline math expression that use combination of$
and backticks.Discussion
I have done some experiment and it looks that it only need little modification for this syntax to work.
But I'm wondering
extensions\markdown-math
ofvscode
Appendix: Possible Fix