Skip to content

Commit

Permalink
Allow callouts to have - in their name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Eskild Steensen committed Mar 17, 2023
1 parent f7e92d2 commit 313dc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 313dc50

Please sign in to comment.