diff --git a/eleventy.config.md.js b/eleventy.config.md.js index 2fd7b84c..5fe948c1 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -63,13 +63,6 @@ module.exports = function (eleventyConfig) { }, }; - // Paired shortcode: custom container - eleventyConfig.addPairedShortcode('container', (children, el, className) => { - const classMarkup = className ? ` class="${className}"` : ""; - const content = markdownLibrary.render(children); - return `<${el}${classMarkup}>${content}`; - }); - /* Markdown Overrides */ let markdownLibrary = markdownIt({ html: true, @@ -79,6 +72,13 @@ module.exports = function (eleventyConfig) { .use(require("markdown-it-bracketed-spans")) .use(require("markdown-it-deflist")); + // Paired shortcode: custom container + eleventyConfig.addPairedShortcode('container', (children, el, className) => { + const classMarkup = className ? ` class="${className}"` : ""; + const content = markdownLibrary.render(children); + return `<${el}${classMarkup}>${content}`; + }); + // Paired shorcode: Spoiler accordion eleventyConfig.addPairedShortcode('spoiler', (content, hint) => { const hintMarkup = markdownLibrary.renderInline(hint);