yeikiu / vue3-md-blog

✍️ Minimal config Vue3 + Markdown + Bootstrap blog engine
https://yeikiu.github.io/vue3-md-blog
Creative Commons Zero v1.0 Universal
77 stars 10 forks source link

custom vue components #7

Closed jannikbuscha closed 1 year ago

jannikbuscha commented 3 years ago

Hi, is it possible to specify custom vue components in the markdown file that will be rendered afterwards? e.g. <my-button>Hi</my-button> will then become <a class="btn">Hi</a> as html element

yeikiu commented 2 years ago

Hi, is it possible to specify custom vue components in the markdown file that will be rendered afterwards? e.g. <my-button>Hi</my-button> will then become <a class="btn">Hi</a> as html element

Sorry I didn't get to you earlier, been lost in other projects tbh. You won't be able to do that from the posts .md files but you could technically define minimal components within vue3-md-blog/src/components as MyCustomButton.md as long as they don't need any kind of setup or js logic in general.