microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.08k stars 28.81k forks source link

Code Blocks in Markdown Preview Don't Sync with Theme #214732

Closed 1chooo closed 3 months ago

1chooo commented 3 months ago

Does this issue occur when all extensions are disabled?: Yes (But without extensions we cannot find this issue)

Steps to Reproduce:

  1. Select the GitHub Theme as the Color Theme
  2. Open *.md and paste the code in the below:

    int n;
    
    buffer = n;             // each can hold one item
    semaphore mutex = 1;
    semaphore empty = n;
    semaphore full = 0;
  3. It happened, the code blocks in Markdown preview don't sync with GitHub Theme

In the Markdown Preview, no matter how I change the Color Theme in VSCode, the code blocks in the Markdown Preview do not reflect the selected theme. I have tried various themes, including GitHub and Nord, but the preview colors remain in the default scheme.

Could you please advise on how to make the code blocks in Markdown Preview sync with the chosen Color Theme? This would greatly improve the experience of writing Markdown, as currently, I have two different syntax color schemes on my screen.

Screenshots:

Screenshot 2024-06-09 at 10 28 44 PM

related: #174090

Thanks a lot !!!

mjbvz commented 3 months ago

Duplicate of #91279 (from already linked issue)