mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-07 05:05:20 +00:00
Allow callouts to have - in their name
This commit is contained in:
parent
f7e92d227c
commit
313dc50c95
@ -254,7 +254,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
let calloutType = "";
|
let calloutType = "";
|
||||||
let isCollapsable;
|
let isCollapsable;
|
||||||
let isCollapsed;
|
let isCollapsed;
|
||||||
const calloutMeta = /\[!(\w*)\](\+|\-){0,1}(\s?.*)/;
|
const calloutMeta = /\[!([\w-]*)\](\+|\-){0,1}(\s?.*)/;;
|
||||||
if (!content.match(calloutMeta)) {
|
if (!content.match(calloutMeta)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user