Although popular, highlight.js is pretty slow and getting a little old in its methodology. I often see it fail in complex syntax blocks and it'd be nice if we had something that provided virtualization out of the gate.
I'd like to look into replacing it with react-syntax-highlighter which is backed by Prism JS (which I have some love and familiarity with) and comes with virtualization (which would close #1208).
I can give this a shot myself, but please give a yell if anything looks out of sort from that dependency. The bulk of the work I think will be transferring our styling over.
Although popular, highlight.js is pretty slow and getting a little old in its methodology. I often see it fail in complex syntax blocks and it'd be nice if we had something that provided virtualization out of the gate.
I'd like to look into replacing it with react-syntax-highlighter which is backed by Prism JS (which I have some love and familiarity with) and comes with virtualization (which would close #1208).
I can give this a shot myself, but please give a yell if anything looks out of sort from that dependency. The bulk of the work I think will be transferring our styling over.