Compatibility with Quarto #9630
-
The Quarto notebook project builds part of its documentation around how to use vs-code with the jupyter extension to create beautifully rendered HTML and pdf documents https://quarto.org/docs/get-started/hello/vscode.html However, I've noticed a problem with using Quarto syntax that results in a katex parsing error in a markdown cell when using the juptyer extension. The issue does not arise using JupyterLab. Quarto allows one to label and cross-reference equations, as described here: In the example there, a ## Equation
THis is the standard deviation formula:
$$
\sqrt{\frac{1}{N-1} \sum_{i=1}^N (x_i - \overline{x})^2}
$$ {#eq-stddev} The problem is that the juptyer extension in vs-code chokes on this syntax, and presents a Katex parser error instead of the rendered cell: This problem does not arise in Jupyterlab, where the same is rendered like this: Would it be possible to change the parsing to allow this syntax? One could then develop notebooks using the jupyter extension and also have the option of using the powerful extra directives and syntax from quarto to produce beautiful websites, books, blog posts, and other documents. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks, looks like a bug in the way we parse these latex expressions. |
Beta Was this translation helpful? Give feedback.
Thanks, looks like a bug in the way we parse these latex expressions.
I've filed a bug for this in VS Code, & you can track that issue here microsoft/vscode#147043