antfu / vite-plugin-md

Markdown with Vue for Vite
MIT License
604 stars 89 forks source link

How to override the original markdown element and use a custom vue component? #136

Open Star-tears opened 1 year ago

Star-tears commented 1 year ago

Discussed in https://github.com/antfu/vite-plugin-md/discussions/135

Originally posted by **Star-tears** April 3, 2023 I know I can write vue components directly in markdown, but if I want to re-render the native elements of markdown with custom vue components to make it look better. **How do I set up markdown-it?** **Is there an elegant demo please?**