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

Prism syntax highlighting does not work for multi-line comments #182

Open
ebramanti opened this issue Apr 7, 2023 · 0 comments
Open

Prism syntax highlighting does not work for multi-line comments #182

ebramanti opened this issue Apr 7, 2023 · 0 comments

Comments

@ebramanti
Copy link

Syntax highlighting is only applied on a per-line basis due to how the renderContent API is designed. Because it only syntax highlights one line at a time, multi-line comments are not rendered properly.

Here is an update to the example of the multi-line comment: master...ebramanti:react-diff-viewer:syntax-highlighting-bug

And what it looks like rendered:
image

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

No branches or pull requests

1 participant