Search code examples
visual-studio-codelatexmarkdownjupyterhtml-lists

Latex formulas and lists in Jupyter notebook markdown with VS code


I need to place latex formulas in list. With markdown:

    <ol>
        <li> $x_1$  </li>
        <li> $x_2$  </li>
    </ol>

I get:

enter image description here

As you can see, latex is not applied. How to fix it or what are the alternative ways to realise list with latex formulas?


Solution

  • Visual Studio Code seems to render this just fine if you use Markdown syntax for your list instead of HTML:

    1. $x_1$
    1. $x_2$
    

    Screenshot of VSCode's rendering