leerob / leerob.io

✨ My portfolio built with Next.js, Tailwind, and Vercel.

Home Page:https://leerob.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(request) Document your mdx syntax highlighting setup

NateRadebaugh opened this issue · comments

(request) Document your mdx syntax highlighting setup

I'm wondering how/if you've got a SSR syntax highlighting solution without a front-end bundled prism.js and prism-react-renderer.

https://leerob.io/blog/mdx no longer seems to be up to date.

I'm now using contentlayer, which is like Prisma, but for your content.

https://github.com/leerob/leerob.io/blob/main/contentlayer.config.ts#L84-L103

Planning to do a live stream soon walking through various updates to this repo!