Add Seitan article, implement <figure> capability
This commit is contained in:
@ -2,6 +2,7 @@ const { DateTime } = require("luxon");
|
||||
const markdownIt = require("markdown-it");
|
||||
const markdownItFootnote = require("markdown-it-footnote");
|
||||
const markdownItAnchor = require("markdown-it-anchor");
|
||||
const mdfigcaption = require('markdown-it-image-figures');
|
||||
|
||||
const pluginRss = require("@11ty/eleventy-plugin-rss");
|
||||
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
|
||||
@ -12,6 +13,10 @@ const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
||||
const pluginDrafts = require("./eleventy.config.drafts.js");
|
||||
const pluginImages = require("./eleventy.config.images.js");
|
||||
|
||||
const figoptions = {
|
||||
figcaption: true
|
||||
};
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
// Copy the contents of the `public` folder to the output folder
|
||||
// For example, `./public/css/` ends up in `_site/css/`
|
||||
@ -91,7 +96,7 @@ module.exports = function(eleventyConfig) {
|
||||
}),
|
||||
level: [1,2,3,4],
|
||||
slugify: eleventyConfig.getFilter("slugify")
|
||||
}).use(markdownItFootnote);
|
||||
}).use(markdownItFootnote).use(mdfigcaption, figoptions);
|
||||
});
|
||||
|
||||
// Features to make your build faster (when you need them)
|
||||
|
Reference in New Issue
Block a user