From 313dc50c9534f23ad79416b6987c3af27ecb72a8 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Fri, 17 Mar 2023 16:38:42 +0100 Subject: [PATCH] Allow callouts to have - in their name --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index d49d1d4..38cf265 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -254,7 +254,7 @@ module.exports = function (eleventyConfig) { let calloutType = ""; let isCollapsable; let isCollapsed; - const calloutMeta = /\[!(\w*)\](\+|\-){0,1}(\s?.*)/; + const calloutMeta = /\[!([\w-]*)\](\+|\-){0,1}(\s?.*)/;; if (!content.match(calloutMeta)) { continue; }