-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
feat: highlight code #6794
feat: highlight code #6794
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request includes a feature update to the BlogPost.vue component within the blog section. The main feature added is the code highlighting capability, making use of the 'highlight.js' library and appropriate CSS styles. The code updates include the addition of highlighting functions triggered on mounted stage of the component and styling for both light and dark modes for the highlighted syntax. Support for dynamic theme loading based on the page's theme is also added for better UX. |
@exezbcz pls review this pr |
@floyd-li Welcome back sir
|
both done @exezbcz |
By the way, is there any way to add copy code to each of them in the follow-up, or would it require more than I think? works for me |
manually adjust the color of the inline code-block to match the code syntax theme
i think this feature need integration of clipboard.js, if you want it i may do it in another pr. wdyt? |
Code Climate has analyzed commit c73d732 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I did follow up with p4, let's see if its demanded nice job! |
4 mb package 🥲 |
@vikiival then its pass |
@floyd-li isn't there lighter package? |
sorry but which package? i did not import any new package this pr 🤔️ |
ah I see we are already using it @vikiival then whatever merge? |
Yup, proceed and merge |
pay 30 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
enable code highlight on blog post. support light and dark theme.
code syntax theme based on
atom-one
theme👇 __ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at 60f740a
Added code highlighting feature for blog posts using
highlight.js
. Adjusted code block style to match page theme.🤖 Generated by Copilot at 60f740a