forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmd.js
More file actions
33 lines (27 loc) · 763 Bytes
/
md.js
File metadata and controls
33 lines (27 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const markdownIt = require('markdown-it')
const
mdPluginLink = require('./md-plugin-link'),
mdPluginToken = require('./md-plugin-token'),
mdPluginBlockquote = require('./md-plugin-blockquote'),
mdPluginHeading = require('./md-plugin-heading'),
mdPluginImage = require('./md-plugin-image'),
mdPluginContainers = require('./md-plugin-containers'),
mdPluginTable = require('./md-plugin-table')
const
highlight = require('./highlight')
const opts = {
html: true,
linkify: false,
typographer: true,
highlight
}
const md = markdownIt(opts)
.use(mdPluginLink)
.use(mdPluginToken)
.use(mdPluginBlockquote)
.use(mdPluginHeading)
.use(mdPluginImage)
.use(mdPluginContainers)
.use(mdPluginTable)
md.$data = {}
module.exports = md