Syntax Highlighting for React StructuredText

Is there a way to integrate syntax highlighting into the StructuredText component for React, ideally using Prism.js. I think this might be possible using the customRules prop, but I can’t find any documentation on how to use it.

Hi! Take a look at our website code! We’re using Prism.js ourselves! :slight_smile:

Oh brilliant, thanks so much!!