DEV Community

Discussion on: How to use the Remark Markdown converters with Next.js projects

Collapse
 
jameswallis profile image
James Wallis

Hi Sanjib, did you add the CSS stylesheet to your _app.js?

github.com/james-wallis/wallis.dev...

Collapse
 
sanjib104 profile image
SANJIB KUMAR DEY

Hey James, I tried that as well.
I followed up your recent blog update. Could see you've dropped remark-to-react.
Any way to workaround it ? That external link target config was quite easy with that library.
Here's my repo: github.com/sanjibdey104/webdevref/...
Would be great if you can check the code once.

(on the main branch I've user react-markdown and react-syntax-highlighter, though there's one small glitch - nothing breaking)

Thread Thread
 
jameswallis profile image
James Wallis

Hi, oh yeah sorry. I can't remember getting syntax highlighting working with React Remark, can't even recall trying.

I'd check that the CSS classnames are being added on the client side, that'll narrow down whether it's the CSS that isn't working or the converter. Do you want to send me a link to your site with some content that should be highlighted?