Files
vuepress/docs/using-vue.md
T
2018-04-06 10:00:33 -04:00

588 B

Using Vue in Markdown

Templating

Using Components

Any *.vue file found in .vuepress/components are automatically registered as global async components. For example:

.
└── .vuepress
    └── components
        └── demo-1.vue

Inside any markdown file you can then use the component like so:

<div>
  <demo-1/>
</div>

::: warning Note components must be nested inside a <div>, because otherwise they'd be automatically wrapped inside a <p>, which can only contain inline elements. :::

Style & Script

(TODO)