Vue component for rendering Markdown with remarkable.
yarn add vue-remarkable
npm install --save vue-remarkable
import vueRemarkable from 'vue-remarkable';
export default {
components: {
vueRemarkable
}
}
<vue-remarkable>
{{`
# Vue is awesome
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
`}}
</vue-remarkable>
<!-- or -->
<vue-remarkable :source="`
# Vue is awesome
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
`"/>
Property | Type | Default |
---|---|---|
source | String | |
container | String | div |
class-name | String | |
options | Object | {} |
MIT © katalonne