Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown: Shell fenced code block have incorrect syntax highlighting after indent #55

Open
alexr00 opened this issue Aug 30, 2023 · 1 comment

Comments

@alexr00
Copy link

alexr00 commented Aug 30, 2023

I created a sh sample code with some comments inside a fenced code block, place it after an list item and then indent it.
If I indent the code block, the syntax highlighting loses its color.
The bug is in the markdown editor and preview.

Does this issue occur when all extensions are disabled?: YES

Basic Information

  • VS Code Version: 1.77.3 (user setup)
  • OS Version: Windows_NT x64 10.0.19045
  • Color Theme: Dark+ (default dark)

Steps to Reproduce:

  1. Open markdown file
  2. Create list
  3. Add a code block (see sample code below)
  4. See the result (see screenshots below)

Sample Code

1. List One

```sh
sudo apt-get purge --autoremove -y google-chrome-stable

# with alias
remove -y google-chrome-stable
```

1. List Two

    ```sh
    sudo apt-get purge --autoremove -y google-chrome-stable

    # with alias
    remove -y google-chrome-stable
    ```

1. List Three

    ```sh
        sudo apt-get purge --autoremove -y google-chrome-stable

        # with alias
        remove -y google-chrome-stable
    ```

Screenshots

Actual behavior

md-with-error

Expected behavior

md-with-good

Originally from @adorade in microsoft/vscode#180246

@alexr00 alexr00 changed the title Markdown: Shell fenced code block have incorrect synthax highlighting after indent Markdown: Shell fenced code block have incorrect syntax highlighting after indent Aug 30, 2023
@patrickwalton
Copy link

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants