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

Problematic syntax highlighting with VitePress markdown files #4734

Closed
rileychh opened this issue Aug 28, 2024 · 0 comments · Fixed by #4735
Closed

Problematic syntax highlighting with VitePress markdown files #4734

rileychh opened this issue Aug 28, 2024 · 0 comments · Fixed by #4735
Labels
bug Something isn't working 🔨 p3-minor-bug

Comments

@rileychh
Copy link

Vue - Official extension or vue-tsc version

2.0.28

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

System:
  OS: Linux 6.10 Arch Linux
  CPU: (16) x64 Intel(R) Core(TM) i5-14400
  Memory: 13.31 GB / 31.09 GB
  Container: Yes
  Shell: 3.7.1 - /usr/bin/fish
Binaries:
  Node: 20.17.0 - /usr/bin/node
  npm: 10.8.2 - /usr/bin/npm
  pnpm: 9.9.0 - /usr/bin/pnpm
Browsers:
  Chromium: 128.0.6613.84

Steps to reproduce

  1. Create a project with npx vitepress init
  2. Configure tsconfig.json and .vscode/config.json as told in feat: redesign additional extensions, VitePress, PetiteVue support #4321
  3. Add <script setup> block to index.md
  4. Check syntax highlighting of index.md

What is expected?

The syntax highlighting in the <script setup> block is correctly rendered.

What is actually happening?

The syntax highlighting for the <script setup> block in the Markdown file is misaligned.
Syntax highlighting of index.md

Link to minimal reproduction

https://github.com/rileychh/vitepress-vue-tsc-repro

Any additional comments?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔨 p3-minor-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants