markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Markdown not working with tailwind in Next JS 13 - example project repo added

Open minifisk opened this issue 2 years ago • 1 comments

I want to show an article with all the styles from markdown-to-jsx but can't get it to work in NextJS when using tailwind. The styles are only applied if I add it to the tailwind.css file, but it don't seem like I'm getting the styles from the project?

I've added a repo where I've reproduced this, maybe you can take a look: https://github.com/minifisk/markdown-tailwind

minifisk avatar Oct 06 '23 09:10 minifisk

Hi @minifisk , Have you ever tried https://tailwindcss.com/docs/typography-plugin?

alfianyusufabdullah avatar Dec 17 '23 14:12 alfianyusufabdullah

Same comment from the other issue, ensure your md files are being scanned by the tailwind engine so it can detect class usage if the classes are in the MD files themselves

quantizor avatar Mar 13 '24 19:03 quantizor