Skip to content

Commit 8383329

Browse files
committed
feat($markdown): pass rest options to instantiate markdown-it
Close: #1040 e.g. markdown: { config: md => { md.set({linkify: true}); } } shortcut: markdown: { linkify: true },
1 parent 31fb1f1 commit 8383329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/markdown/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ module.exports = ({ markdown = {}} = {}) => {
1717
// allow user config slugify
1818
const slugify = markdown.slugify || _slugify
1919

20-
const md = require('markdown-it')({
20+
const md = require('markdown-it')(Object.assign({
2121
html: true,
2222
highlight
23-
})
23+
}, markdown))
2424
// custom plugins
2525
.use(component)
2626
.use(highlightLines)

0 commit comments

Comments
 (0)