From 628179ee8f2fb5df20114ea33f4d548798ff8a51 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 19 Apr 2023 14:23:02 -0400 Subject: [PATCH] fix: mixed case custom callout types are supported (#295) --- src/callout/manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callout/manager.ts b/src/callout/manager.ts index 99539fd..d7e0e28 100644 --- a/src/callout/manager.ts +++ b/src/callout/manager.ts @@ -204,12 +204,12 @@ export default class CalloutManager extends Component { ? `--callout-color: ${admonition.color};` : ""; if (admonition.icon.type == "obsidian") { - rule = `.callout[data-callout="${admonition.type}"] { + rule = `.callout[data-callout="${admonition.type.toLowerCase()}"] { ${color} --callout-icon: ${admonition.icon.name}; /* Icon name from the Obsidian Icon Set */ }`; } else { - rule = `.callout[data-callout="${admonition.type}"] { + rule = `.callout[data-callout="${admonition.type.toLowerCase()}"] { ${color} --callout-icon: '${( this.plugin.iconManager.getIconNode(admonition.icon)?.outerHTML ??