vscode icon indicating copy to clipboard operation
vscode copied to clipboard

[BUG] The LaTeX/KaTeX rendering is not functioning correctly when viewing in Markdown.

Open H0llyW00dzZ opened this issue 1 year ago • 0 comments

Does this issue occur when all extensions are disabled?: N/A

  • VS Code Version:
  • Latest
  • OS Version:
  • Windows 11 Home

Steps to Reproduce:

The LaTeX/KaTeX rendering is not functioning correctly when viewing in Markdown.

  1. Paste the following code into a Markdown file:

$$
 \[
 \text{Total vCPUs} = 41 \text{ Pods} \times 0.35 \text{ vCPUs/Pod} = 14.35 \text{ vCPUs}
 \]
$$

  1. Open the Markdown preview.

Expected Behavior:

The LaTeX/KaTeX should render properly in the preview.

Actual Behavior:

The preview shows an error instead of the rendered LaTeX/KaTeX.

Screenshots:

Markdown Input:

Image Markdown Input

Error in Preview:

Error in Preview

Additional Information:

The same LaTeX/KaTeX code renders correctly on GitHub Markdown, indicating that the issue is specific to VS Code's Markdown rendering.

Screenshots on GitHub Markdown:

Image

H0llyW00dzZ avatar Oct 19 '24 15:10 H0llyW00dzZ