m-markdown-preview

1.0.0 • Public • Published

m-markdown-preview

A markdown preview component for vue.

Example

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

markdown-it

Readme

Keywords

none

Package Sidebar

Install

npm i m-markdown-preview

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

3.84 MB

Total Files

56

Last publish

Collaborators

  • lanyue