I’m having trouble getting Prism working with the Remark transformer in Gatsby as described here:
The issue seems to be that Prism works off the
<code> tag but Prismic outputs
<pre> markdown. I set up an HTML Serializer to place a
<code> tag with a
language-js class inside the preformat tag per this:
I also had to add this Prism hook to maintain line breaks:
I think what I need is for
prismic-reactjs Elements to return raw text rather than HTML. Is this possible?
I take it I’m going about this the wrong way, but any insight would be appreciated. Or perhaps this is a question more for the Prism or Gatsby folks.