-
Notifications
You must be signed in to change notification settings - Fork 619
Replace prism+chakra Code component with shiki+tailwind #5393
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
Replace prism+chakra Code component with shiki+tailwind #5393
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5393 +/- ##
=======================================
Coverage 45.32% 45.32%
=======================================
Files 1067 1067
Lines 55405 55405
Branches 4001 3999 -2
=======================================
Hits 25111 25111
Misses 29607 29607
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
45556f1 to
48625bf
Compare
48625bf to
56a650d
Compare
56a650d to
adfbba1
Compare
adfbba1 to
3e458c2
Compare
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on refactoring code related to code blocks in the UI by replacing the `CodeBlock` component with a new `CodeClient` component and introducing a `PlainTextCodeBlock` for plain text display. It also updates styles and dependencies.
### Detailed summary
- Removed `CodeBlock` component from various files.
- Introduced `CodeClient` component for enhanced code rendering.
- Added `PlainTextCodeBlock` for displaying plain text.
- Updated styles in `globals.css` for dark mode support.
- Added new utility functions for code formatting.
- Updated dependencies in `package.json` and `pnpm-lock.yaml`.
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
3e458c2 to
ff188fd
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on refactoring the code for handling code blocks in the UI, replacing instances of
CodeBlockwithCodeClientandPlainTextCodeBlock, and updating styles and imports accordingly. It also adds new functionalities related to code formatting.Detailed summary
CodeBlockcomponents and replaced withCodeClientorPlainTextCodeBlock.getCodeHtmlfunction to format code and convert it to HTML.package.jsonto includeshikifor syntax highlighting.