Joe
Joe

Reputation: 373

Github markdown render is not equivalent to VS Code

I have a section of Latex that is written as,

1. First she must calculate the inverse of $e \ (d)$ in $\mathbb{Z}_{1440}$. Recall that $e$ has an inverse in $\mathbb{Z}_{n}$ if $e$ * $e^{-1} \equiv 1 \ mod \ n$. This is easily done using Euclidian's algorithm. <br>

In VS Code this renders correctly and displays

enter image description here

However in Github it displays,

enter image description here

From what I have experienced Github has minor tweeks to what it does and does not support, but what can I do here to display what I have in VS Code?

Upvotes: 1

Views: 519

Answers (1)

Aaron Meese
Aaron Meese

Reputation: 2213

The fix to this is to escape your underscore characters, as they are currently being interpreted as italics instead of as part of the mathematical equation:

1. First she must calculate the inverse of $e \ (d)$ in $\mathbb{Z}\_{1440}$. Recall that $e$ has an inverse in $\mathbb{Z}\_{n}$ if $e$ * $e^{-1} \equiv 1 \ mod \ n$. This is easily done using Euclidian's algorithm. <br>

Example of this rendered in the GitHub markdown editor:

rendered markdown

Upvotes: 1

Related Questions