Set up abbrs and footnotes
This commit is contained in:
parent
e64eac49d7
commit
fc2a7007d0
3 changed files with 201 additions and 157 deletions
16
.eleventy.js
16
.eleventy.js
|
|
@ -1,4 +1,7 @@
|
|||
const pluginRss = require('@11ty/eleventy-plugin-rss')
|
||||
const markdownIt = require('markdown-it')
|
||||
const footnotes = require('markdown-it-footnote')
|
||||
const abbrs = require('markdown-it-abbr')
|
||||
|
||||
const { DateTime } = require('luxon')
|
||||
const header = require('./src/_includes/filters/header')
|
||||
|
|
@ -13,6 +16,19 @@ module.exports = function (config) {
|
|||
config.addPassthroughCopy('src/assets/key.txt')
|
||||
config.addPassthroughCopy('src/assets/ibm-plex/IBM-Plex-Mono/fonts/**/*')
|
||||
|
||||
// configure markdown
|
||||
const mdOptions = {
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: true
|
||||
}
|
||||
|
||||
config.setLibrary("md",
|
||||
markdownIt(mdOptions)
|
||||
.use(footnotes)
|
||||
.use(abbrs)
|
||||
)
|
||||
|
||||
// template filters
|
||||
|
||||
// format dates as YYYY-MM-DD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue