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!!