vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Support LaTeX rendering w/o dollar sign quoted in Copilot chatbox

Open Pengkun-ZHU opened this issue 3 weeks ago • 2 comments

Copilot chatbox cannot render LaTeX text when it is not quoted by dollar sign:

image

I explicitly told the LLM to generate me w vs w/o dollar sign, see below, with dollar sign it renders correct:

image

Since most newer models heavily prefer to LaTeX formatting, this has become a pretty frequent friction point for me.

Please consider support rendering of below LaTex format, i.e., not quoted with dollar sign:

  • Display LaTeX:
\[
...
\]
  • Inline LaTeX:
\( ... \)

Pengkun-ZHU avatar Nov 14 '26 04:11 Pengkun-ZHU

I just quickly reviewed related code and found that LaTeX support does exist in VSCode, approached by KaTex module. The cause, however, is that the Markdown parser only recognizes dollar-sign delimiters. As a result, expressions using (...) or [...] aren’t passed to the math renderer. Edited to make this issue request more correct and precise. See edit history for details.

Pengkun-ZHU avatar Nov 14 '26 05:11 Pengkun-ZHU

yes this would be nice

nikolaydubina avatar Nov 14 '26 12:11 nikolaydubina