Skip to content

Instantly share code, notes, and snippets.

@yawnoc
Last active June 12, 2022 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawnoc/940672b0e5054d5fd9d5ec737791023b to your computer and use it in GitHub Desktop.
Save yawnoc/940672b0e5054d5fd9d5ec737791023b to your computer and use it in GitHub Desktop.
GitHub markdown equations test

GitHub markdown equations test

If a list item contains multi-line display maths followed by inline maths, the display maths will not get rendered:

One-liner display maths (OK)

  • Let

    $$E = mc^2,$$

    where <no inline maths here>.

One-liner display maths followed by inline maths (OK)

  • Let

    $$E = mc^2,$$

    where $E$ is energy, $m$ is mass, etc.

Multi-line display maths (OK)

  • Let

    $$ f(x) = \frac{ a_0 + a_1 x + a_2 x^2 + \dots }{ b_0 + b_1 x + b_2 x^2 + \dots }, $$

    where <no inline maths here>.

Multi-line display maths followed by inline maths (BROKEN)

  • Let

    $$ f(x) = \frac{ a_0 + a_1 x + a_2 x^2 + \dots }{ b_0 + b_1 x + b_2 x^2 + \dots }, $$

    where $a_0$ etc. are constants.

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