vercel / nextjs-portfolio-starter

Easily create a portfolio with Next.js and Markdown.
https://demo.vercel.blog
664 stars 263 forks source link

Are code blocks rendering correctly? #10

Closed joshbochu closed 2 years ago

joshbochu commented 2 years ago

Curious if the code blocks on the demo app are rendering with the proper syntax highlighting. I've attached a snippet from here

image

Based on the documentation from Nextra, I'd expect it to have some color. But perhaps I'm missing something!

joshbochu commented 2 years ago

Having taken a closer look at the documentation, I realize that the colorful highlighting is only available for the docs theme out of the box. The blog theme will need some additional customization.

reillyjodonnell commented 1 year ago

You need to add the language after the first 3 back ticks.

i.e if a typescript snippet you'd use

'''typescript