feat(11ty): add custom markdown-it

This commit is contained in:
Oscar 2019-11-17 22:30:20 +01:00
parent 586d92f5a2
commit e0eca4c9fe

View File

@ -135,6 +135,17 @@ module.exports = function (config) {
})
})
const mdIt = require('markdown-it')({
html: true
})
const prism = require('markdown-it-prism')
const anchor = require('markdown-it-anchor')
mdIt.use(prism)
mdIt.use(anchor)
config.setLibrary('md', mdIt);
// You can return your Config object (optional).
return {
dir: {