-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add syntax highlight for code blocks #111
Conversation
shiki provides prepacked themes which can be used conveniently with rehype plugin
Theme used is one-dark-pro
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@uncenter Please check, I've implemented all the requested changes. Syntax highlighting works for latest code |
Yeah I was about mention that!😅 I'll change the theme to |
@uncenter Done✅ |
@uncenter I've removed that package. |
Did you run the uninstall command or just remove it from the package.json? Looks like you had a build failure as soon as you did that. |
I didn't remove it using |
I think that's it. If the build succeeds + no unnecessary files are changed, it should be good to go. |
Alright |
3e6811b
to
ffa7096
Compare
@uncenter I've fixed the issue now, build is successful. |
We've made major changes to the website, so instead of dealing with merge conflicts, I implemented your solution. It's live on the website now. Closing this PR. |
Great! New design + syntax highlighting looking good. |
Additions
one-dark-pro
, theme can be changed in next.config.js.Related Issues
#103 - Syntax Highlighting in docs
Example
checkout the code snippet here - /docs/running-on-vercel
References