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 · May be fixed by #4133 or #4142
Open

(css) Line breaks disappear #4101

Vanessa219 opened this issue Aug 29, 2024 · 2 comments · May be fixed by #4133 or #4142
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

mohit-nagaraj added a commit to mohit-nagaraj/highlight.js that referenced this issue Oct 9, 2024
@joshgoebel joshgoebel linked a pull request Oct 20, 2024 that will close this issue
2 tasks
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
3 participants