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

(css) Line breaks disappear #4101

Open
Vanessa219 opened this issue Aug 29, 2024 · 2 comments
Open

(css) Line breaks disappear #4101

Vanessa219 opened this issue Aug 29, 2024 · 2 comments
Labels
bug help welcome Could use help from community language

Comments

@Vanessa219
Copy link

Describe the issue
Line breaks disappear

Which language seems to have the issue?
css

Are you using highlight or highlightAuto?

hljs.highlight

Sample Code to Reproduce

hljs.highlight(`[\n1`,
          {
            language:"css",
            ignoreIllegals: true
          }
        ).value

QQ_1724903357711

Expected behavior

Line breaks do not disappear

@joshgoebel
Copy link
Member

Oh wow, that is one heck of a bug. That shouldn't even be possible.

@TCOTC
Copy link

TCOTC commented Aug 29, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
Development

No branches or pull requests

3 participants