Home

Issue: 941

Where to the pass render function for Vue instance?

[issue link]

I’m trying to get a static site to generate from a set of markdown docs like https://github.com/ElemeFE. I have included vue-markdown-loader as part of my package.

I have set up components in the global scope through a global.js plugin. I am not sure where/how to define the render function for the Vue instance so that all Vue components coded inside the Markdown files can be rendered like so:
https://github.com/ElemeFE/element/blob/dev/examples/entry.js#L40

Button example:
https://github.com/ElemeFE/element/blob/dev/examples/docs/en-US/button.md

And site:
http://element.eleme.io/#/en-US/component/button

Thanks!

This question is available on Nuxt.js community (#c810)