James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.55k stars 522 forks source link

inline math `\( \)` is not rendered correctly #4314

Closed redmouth closed 2 months ago

redmouth commented 2 months ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [ *] The issue has not been reported in this repository.
  • [* ] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [* ] The FAQ cannot address the issue.
  • [ *] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: ubuntu22.04.4
  • Visual Studio Code Version: 1.91.0
  • LaTeX Workshop Version: v10.1.0
  • TeX Distribution Version: TeX Live 2022/dev/Debian

Please list the environment and version number if you are using VSCodium, Snap or Flatpack versions of Visual Studio Code, and/or Visual Studio Code Remote Containers/SSH/WSL.

  • I am using Visual Studio Code whose version is 1.91.0

The Issue*

Please briefly describe the issue you come across.

  • Inline math using \( \) is not rendered as expected
  • For example, ( E = mc^2 ) is not rendered in the preview window.

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.

  1. open/create a .md file
  2. input ( E = mc^2 )
  3. open markdown preview

Expected Behavior

What were you expecting to see? Include any relevant examples or documentation links.

Logs

LaTeX Workshop Output*

Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered.

[Paste the log here. Do not remove the surrounding backquotes (`).]

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

[Paste the log here. Do not remove the surrounding backquotes (`).]

Anything Else?

Add any other context about the problem below.

jlelong commented 2 months ago

I cannot reproduce the issue. Can you post a screenshot showing the problem?

redmouth commented 2 months ago

Screenshot from 2024-07-09 16-31-26

jlelong commented 2 months ago

Still I confirm that I cannot reproduce the problem. Can you try with a file just containing the above Latex code? Can you post the content of the Developer Tools Console? What about the extension logs?

redmouth commented 2 months ago

The file containing only the Latex code still is not rendered as expected. There is no related logs in Developer Tools Console.

jlelong commented 2 months ago

I am afraid I cannot help without any logs (Developer Tools Console and extension logs). So I am closing the issue.