How to use linguist in javascript? for syntax highlighting #6979
Replies: 5 comments 3 replies
-
You can't. Linguist is not responsible for syntax highlighting. It is used for language detection with the syntax highlighting performed by a separate internal application. Linguist is also written in Ruby. |
Beta Was this translation helpful? Give feedback.
-
giscus is a comment system written in preact and next.js powered by github discussions but highlights syntax without ruby |
Beta Was this translation helpful? Give feedback.
-
giscus uses primer.style for design but primer.style doesn't have any component for highlighting |
Beta Was this translation helpful? Give feedback.
-
primer is github's design system |
Beta Was this translation helpful? Give feedback.
-
giscus isn't rendering the HTML for the syntax highlighting itself. It's using the raw HTML GitHub has already rendered. This is coming across in the |
Beta Was this translation helpful? Give feedback.
-
Just read the title
Beta Was this translation helpful? Give feedback.
All reactions