Load Vue component runnable Markdown template

Update frontmatter-markdown-loader to v1.2.0

NPM module, “frontmatter-markdown-loader” was returning compiled render and staticRenderFns to run Markdown as Vue template manually. This feature was coming from a bit edge-y use-case of mine to run component dynamically.

In this update, added another attribute vue.component which returns compiled Vue component. (And added tests with jest for the entire features 😉)

This could be extended to give the child component’s implementation which is mentioned in markdown.

So we can run Vue component on Markdown smoothly.

Sample project to see this feature:

The README.md is including <npm-or-yarn> element. When we load this with frontmatter-markdown-loader, then assign the same name component; eventually the page will be:


This update happened to build documentation with Markdown which includes multiple Vue components to show sample on Storybook, unlike storybook-readme. (Love this Storybook add-on though)


A Japanese duo by a product designer and a software…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store