-
-
Notifications
You must be signed in to change notification settings - Fork 1
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: auto install markdown-it plugins #3
Comments
It would be nice to support https://github.com/antfu/markdown-it-mdc as well by default |
Indeed, this was something I had in mind |
@atinux, if you have time and will, could I borrow some of your knowledge? While fixing #2 via fe9bea8, I've came up with the understanding that I required Is this the only option to make components work? If not, would you please link some resources (or explain them) on what should I study to implement that one better? Feel free to respond here, or more appropriately in #2 or #4 |
|
My setup currently works by having this interesting hook. For anything more efficient I would have to dive deeper into Vite but I don't want to 😅 // nuxt.config.ts
hooks: {
'vite:extendConfig': (config, { isClient }) => {
if (isClient) config.resolve.alias.vue = 'vue/dist/vue.esm-bundler.js'
}
}, |
To elaborate, I am not returning html, I am returning a render function: https://gist.github.com/luminarious/f55b84e8e0bd56ca39b0e4fa0d91c9f3 |
I would prefer to leave it more agnostic. I was starting to consider a Devtool's panel to help with this, that does fetch the npm packages with the
Well, that's basically a must 😜 |
I wonder if it is possible to look for some sort of registry and auto-install markdown-it plugins from npm.
The text was updated successfully, but these errors were encountered: