-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: enhance code block & code group #2174
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
Conversation
❌ Deploy Preview for slidev failed.
|
Thank you! Btw, are you interested in implementing the codeblock and codegroup features in Slidev's slide rendering as well? That would be a great addition! |
@slidev/client
create-slidev
create-slidev-theme
@slidev/parser
@slidev/cli
@slidev/types
commit: |
Sure, I am happy to try it! And I will open another PR for it. |
Hi, I would like to use it in my slides, so installed What I have done so far is:
import { defineConfig } from 'vite'
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
export default defineConfig({
slidev: {
markdown: {
markdownItSetup(md) {
md.use(groupIconMdPlugin)
}
}
},
plugins: [
groupIconVitePlugin()
],
})
import 'virtual:group-icons.css'
::: code-group import User from './User.vue' createApp(App).use(router).mount('#app') ::: Do you know what I would be missing? Maybe it's not the good way to use vue plugins :/ Thank you in advance, |
Hi Jaime, This PR only add the plugin to slidev's docs. And it can't been used to slidev's slide directly for now. I will implementing it on Slidev's slide rendering soon. |
thank you @yuyinws |
This PR add vitepress-plugin-group-icons to enhance the document's readability. And add title bar for lot of code blocks.
Screenshot