diff --git a/eleventy.config.md.js b/eleventy.config.md.js index 8be1f403..cdf9d80f 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -81,14 +81,13 @@ module.exports = function (eleventyConfig) { // Paired shorcode: Spoiler accordion eleventyConfig.addPairedShortcode('spoiler', (content, hint) => { + content = content.trim(); const hintMarkUp = markdownLibrary.renderInline(hint); const contentMarkup = markdownLibrary.render(content); - return ` -
+ return `
${hintMarkUp}
${contentMarkup}
-
- `; +
`; }); /* This is the part that tells 11ty to swap to our custom config */