fix: highlighting
This commit is contained in:
parent
09cdd5dbdc
commit
ae13df9813
4 changed files with 14 additions and 12 deletions
|
@ -69,6 +69,11 @@ export default async function (eleventyConfig) {
|
|||
eleventyConfig.setLibrary('md', md)
|
||||
|
||||
// filters
|
||||
eleventyConfig.addLiquidFilter('markdown', (content) => {
|
||||
if (!content) return
|
||||
return md.render(content)
|
||||
})
|
||||
|
||||
Object.keys(filters).forEach((filterName) => {
|
||||
eleventyConfig.addLiquidFilter(filterName, filters[filterName])
|
||||
})
|
||||
|
|
Reference in a new issue