1.0.0 • Published 5 years ago
@willsoto/vue-remark v1.0.0
Vue Remark
Heavily inspired by React Markdown
Installation
yarn add @willsoto/vue-remarknpm install @willsoto/vue-remarkimport VueRemark from "@willsoto/vue-remark";
export default {
components: {
VueRemark
}
};Example
<template>
<vue-remark :source="source" />
</template>import VueRemark from "@willsoto/vue-remark";
export default {
components: {
VueRemark
},
data() {
return {
source: "# Some heading"
};
}
};Options
| Name | Type | Required |
|---|---|---|
| source | String | true |
| plugins | Array | false |
| renderers | Object | false |
Node Types
blockquotebreakcodedefinition(not rendered by default)deleteemphasisheadinghtmlimageimageReferenceinlineCodelinklinkReferencelistlistItemparagraphrootstrongtabletableBodytableCelltableHeadtableRowtextthematicBreak