-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: enhance code block #2178
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: enhance code block #2178
Conversation
✅ Deploy Preview for slidev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@slidev/client
create-slidev
create-slidev-theme
@slidev/parser
@slidev/cli
@slidev/types
commit: |
Wow, looks awesome! Thanks a lot for working on it with the high quality PR! |
It looks like the icons aren't automatically available -- does this require installing a separate package for the icons? It looks like I need to install |
Would be awesome to have this work alongside the |
No need to install |
Previous discuss.
docs.
This PR implementing the
code block
andcode group
features in Slidev's slide like vitepress-plugin-group-icons.It is implemented on top of
UnoCSS's PresetIcon
feature.Usage
Code Group
input
Output
Custom Icon
It's also support specify the icon manually:
Input
Output