diff --git a/.eleventy.js b/.eleventy.js index ef41c1e..0d9b5b0 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -381,13 +381,26 @@ module.exports = function (eleventyConfig) { } ); + /* Hacky fix for callouts with only a title: + This will ensure callout-content isn't produced if + the callout only has a title, like this: + ```md + > [!info] i only have a title + ``` + Not sure why content has a random
tag in it, + */ + if (content === "\n
\n") { + content = ""; + } + let contentDiv = content ? `\n