Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the code in the article not highlighted? #73

Open
nonhana opened this issue Nov 9, 2024 · 1 comment
Open

Why is the code in the article not highlighted? #73

nonhana opened this issue Nov 9, 2024 · 1 comment

Comments

@nonhana
Copy link

nonhana commented Nov 9, 2024

First of all, thank you for this open source project that provided me with the inspiration to build my own blog!!

I noticed that the code in your online deployed blog post was not highlighted. What's going on?

And I also use nuxt-content as my CMS, and use @tailwindcss/typography as the .md style renderer. It can be highlighted normally in the dev environment, but once deployed to vercel, I will find that it cannot be highlighted.

image

you can see that there is no shiki classes.

image

this is the normal condition in dev env.

I don't know whether you've encountered the same problem as I have? but I don't know how to solve it (T o T)

@nonhana
Copy link
Author

nonhana commented Nov 9, 2024

I found that when I build it and preview at localhost:3000 it works... I think it might be a Vercel deployment issue??????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant