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

Highlight specific lines does not work anymore / 'highlight' class not added #19

Closed
PatrikBird opened this issue Sep 4, 2023 · 0 comments · Fixed by #21
Closed

Highlight specific lines does not work anymore / 'highlight' class not added #19

PatrikBird opened this issue Sep 4, 2023 · 0 comments · Fixed by #21

Comments

@PatrikBird
Copy link

Hello and thanks for your incredible work on nuxt/content ❤️

I think I came across a bug in this module today.
Highlighting specific lines of code does not work anymore (since nuxt/content 2.8.0)

```vue {2,6-10}
using this syntax in .md files should add a class to the lines 2 and 6-10 that can be used to style those lines
```
I attached two minimal reproductions to explain it further.

Expected behaviour: Using nuxt 3.6 and nuxt/content 2.7.2

image

You can see that the code highlighting for the specific lines works as expected.

html output with nuxt/content 2.7.2

image

Reproduction: https://stackblitz.com/edit/nuxt-content-v2-highlight-class?file=package.json


Unexpected behaviour: Using nuxt 3.6 and nuxt/content 2.8.0

image

You can see that the highlights disappeared using nuxt/content 2.8.0.

html output with nuxt/content 2.8.0

image

Reproduction: https://stackblitz.com/edit/nuxt-content-v2-highlight-class-qb55kd?file=package.json

Further information

  • nuxt/content 2.8.0 was the first version that uses this module, therefore I created this bug here.
  • I tried the newest version (2.8.2) as well, same issue.
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

Successfully merging a pull request may close this issue.

1 participant