1.0.0 • Published 6 years ago
m-markdown-preview v1.0.0
m-markdown-preview
A markdown preview component for vue.
npm
npm install m-markdown-preview
use
import MMarkdownPreview from 'm-markdown-preview'
Vue.use(MMarkdownPreview)
<m-markdown-preview markdown="# wellcome here !" :options="{html: true}"></m-markdown-preview>
MMarkdownPreview Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
markdown | markdown文本 | string | — | — |
hljs-class-name | hljs块类名 | string | — | — |
options | mardkown-it 配置 | object | — | — |
highlight | 代码块回调 | function | — | — |
other
1.0.0
6 years ago