praneshr/react-diff-viewer

Prism syntax highlighting does not work for multi-line comments

ebramanti opened this issue · 0 comments

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