Search code examples
mathjaxgithub-flavored-markdown

How can I represent a column vector with Github supported LaTeX?


I am trying to represent a vector

$\begin{bmatrix} X \\ Y \end{bmatrix}$

Although this renders correctly in my VS Code, it does not render at all when I push it to Github. Do I have a way of correctly creating a column vector what is supported with Github-flavoured-markdown?


Solution

  • It needed to be nested inside ```math

    ```math
    $\begin{bmatrix} X \\ Y \end{bmatrix}$
    ```