Markdown content vue
Based on @nuxt/content code.
View instructions on link
Features
- Parse content
- Html
- Vue components
- Codeblocks (Prismjs)
Install
npm install markdown-content-vue --save
Usage
Import
Template
Script
Register component
components: markdownContent
And parse Markdown
async { const md = const file = '---\ntitle: test\n---\n# Hello World\n ```javascript\n console.log("Hello") \n```\n<HelloWorld></HelloWorld> \n' thiscode = await md console }
Beautiful example
Install github-markdown-css
npm install github-markdown-css
Import
Template