Nuxt/examples/markdownit/pages/pug.vue

21 lines
451 B
Vue
Raw Normal View History

2017-10-27 16:38:47 +00:00
<template lang="pug">
div
h1 Pug Page
2017-11-27 03:30:20 +00:00
:markdown-it()
## Current route is: {{ $route.name }}
div(v-html="$md.render(model)")
2017-10-28 09:01:23 +00:00
br
nuxt-link(to='/') Back Home
2017-10-27 16:38:47 +00:00
</template>
<script>
export default {
data () {
2017-10-27 16:38:47 +00:00
return {
2017-11-27 03:30:20 +00:00
model: '## Title h2\n### title h3\n\nLong text Long text Long text Long text Long text Long text Long text Long text Long text \n\n* gimme a list item\n* and one more yeehaw'
2017-10-27 16:38:47 +00:00
}
}
}
</script>