I found a better syntax highlighting library called Prism. This library supports syntax highlighting for JSX as well (Highlight.js, which I currently use in the course, shows JSX in all the same color).
This pull request shows how to switch from Highlight.js to Prism.