Skip to content
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

Support for vue components #57

Open
scottsweb opened this issue May 9, 2022 · 3 comments
Open

Support for vue components #57

scottsweb opened this issue May 9, 2022 · 3 comments

Comments

@scottsweb
Copy link

Nuxt content allows you to use custom components in your markdown (e.g. v-image) and it looks like those components are not rendered as html by this plugin. I am wondering if it is something that could be supported?

@dword-design
Copy link
Owner

Yeah would be nice to have this. I don't know how though because you would have to somehow boot Nuxt so that the components are present and then render them. I currently use rehype-stringify to convert the markdown into an HTML string. Would be great to have a PR on this.

@scottsweb
Copy link
Author

Thanks for the explanation, that does sound like quite a big lift. I have found another approach for now that involves scraping content from the dist folder which is working well. Happy to close this if needed.

@dword-design
Copy link
Owner

I think I'll leave it open for now and maybe there is a way to implement it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants