Using Vue.js components inside Markdown

I wrote a blog post that shows how to easily import .md files inside your Vue.js components, and in turn how those Markdown files can contain Vue.js components themselves.

Find it here: Vue.js components inside Markdown

Is it possible to render Markdown from CRUD, i.e. dynamic markdown on the fly?

Yes, of course, have a look at this: https://github.com/markdown-it/markdown-it

Of course I mean custom components as well.

You are probably looking for something like this: https://lobotuerto.com/blog/vuejs-components-inside-markdown

But it has to be in <template lang="pug"> or <template lang="markdown">;

Anyways, I’ve found an answer – https://stackoverflow.com/questions/51006553/render-v-html-as-vue-components – i.e. render(h) { return h(Vue.compile(this.code)) }

Or, is there a better option, like Nuxt or something?

Pug is optional. If you take that out, does it work for you?

https://pugjs.org/language/attributes.html

Yes, thanks.

:+1::+1: That’s really good.