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

Line Highlighting in Code Blocks breaks in v0.19.2 #408

Closed
3 tasks done
blurgyy opened this issue Oct 6, 2021 · 0 comments
Closed
3 tasks done

Line Highlighting in Code Blocks breaks in v0.19.2 #408

blurgyy opened this issue Oct 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@blurgyy
Copy link

blurgyy commented Oct 6, 2021

Describe the bug

The line highlighting features are broke now in the official vitepress documentation: https://vitepress.vuejs.org/guide/markdown.html#line-highlighting-in-code-blocks

Reproduction

Open https://vitepress.vuejs.org/guide/markdown.html#line-highlighting-in-code-blocks and discover the lines are not highlighted:

image

Can also be reproduced locally with:

$ mkdir vtprs && cd vtprs
$ yarn init
$ yarn add --dev vitepress

Write some code blocks with lines highlighted in docs/index.md, like

```toml{2}
[highlight]
not_highlighted = true
public = false
```

run yarn vitepress dev docs and discover that second line is not highlighted as expected.

Expected behavior

Code lines are highlighted with minimal setup.

System Info

System:
    OS: Linux 5.14 Arch Linux
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 5.12 GB / 15.49 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 14.17.4 - /sbin/node
    Yarn: 1.22.15 - /sbin/yarn
    npm: 7.24.2 - /sbin/npm
  Browsers:
    Chromium: 94.0.4606.71
    Firefox: 93.0
  npmPackages:
    vitepress: ^0.19.2 => 0.19.2

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@blurgyy blurgyy added the bug: pending triage Maybe a bug, waiting for confirmation label Oct 6, 2021
@posva posva added bug Something isn't working and removed bug: pending triage Maybe a bug, waiting for confirmation labels Oct 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants