Vue Component Inside Vuepress
Create a new file for your component:
Add the following code to
<template lang="html"> <h1>Hello, world</h1> </template>
In your markdown file, add the following:
You can see it in action in the H1 title below:
Don't worry about telling Vuepress to pick up your component. Every Vue.js component in the
.vuepress/components is registered as a global component.