Skip to content

vue-extend/v-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v-markdown

Use:

import Vue from "vue"
import VMarkdown from "v-markdown"

Vue.use(VMarkdown)

Component:

<template>
    <div id="markdown" v-markdown="markdownData"></div>
</template>

<script>
    export default {
        data() {
            return {
                markdownData: `#hello world`
            }
        },
    }
</script>

Rendering:

<div id="markdown">
    <h1>hello world</h1>
</div>