Access snippet in React front-end
-
Hi there, I have been using SyntaxHighlighter Evolved on my WP blog for a while. Everything works fine in the PHP templates.
Now I am converting my front-end to React and querying the content of each post via GraphQl.
The SyntaxHighlighter snippets are coming wrapped only in
<pre>
tag, is there a way to add also<code>
inside of it?Other syntax highlighter are returning both
<pre><code>...</code></pre>
.Is there a setting or option to add this?
Thanks for your response.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Access snippet in React front-end’ is closed to new replies.