mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
feat(11ty): add custom markdown-it
This commit is contained in:
parent
586d92f5a2
commit
e0eca4c9fe
11
.eleventy.js
11
.eleventy.js
@ -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).
|
// You can return your Config object (optional).
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user