I'm using Next.js for my blog and I'm storing my blogs in markdown files and converting those files to string and then into HTML using Greymatter. My code blocks break down into <pre><code class="language-whatever">
and no matter what I do, I can't get syntax highlight to occur.
I've tried adding highlight.js through npm, downloading files from highlight.js and prism, using their cdn's, and nothing is really working.
Is there anybody who has experience setting up syntax highlighting on a markdown blog using Next.js? An example or any advice would be great! Thanks.