Nuxt/examples/markdownit/pages/pug.vue

21 lines
450 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 {
2017-10-31 13:43:55 +00:00
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>