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

Bug- prism fails if the text in a code is empty line #44

Open
ObaidAshiq opened this issue Apr 24, 2024 · 0 comments
Open

Bug- prism fails if the text in a code is empty line #44

ObaidAshiq opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ObaidAshiq
Copy link

Description
When the user try to view the diff in split mode, if the old code and new code have, some empty line, prism throws error for syntax highlighting

Step to reproduce

  1. Use the Syntax Highlighting example
  2. Add some empty lines in new code variable, in the beggining (These variables should contain string value)
  3. Set split mode to true

Screenshot of error
image

Screenshot when split mode is false
image

Code sanbox
image
Link
Code sandbox example

@Aeolun Aeolun added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants