File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ const REGEX = /^\[\!(\w+)\]([+-]?)/;
175
175
* @returns {boolean }
176
176
*/
177
177
function containsKey ( obj : Callout , str : string ) : boolean {
178
- return Object . keys ( obj ) . includes ( str ) ;
178
+ return Object . keys ( obj ) . includes ( str . toLowerCase ( ) ) ;
179
179
}
180
180
181
181
/**
@@ -239,7 +239,7 @@ const plugin: Plugin = (customConfig?: Partial<Config>) => {
239
239
value : `
240
240
<div class="${ titleClass } ">
241
241
<${ iconTagName } class="${ iconClass } ">${
242
- callouts [ calloutType ]
242
+ callouts [ calloutType . toLowerCase ( ) ]
243
243
} </${ iconTagName } >
244
244
${
245
245
title &&
@@ -259,7 +259,7 @@ const plugin: Plugin = (customConfig?: Partial<Config>) => {
259
259
node . data = {
260
260
hProperties : {
261
261
...( ( node . data && node . data . hProperties ) || { } ) ,
262
- className : blockquoteClass || `${ dataAttribute } -${ calloutType } ` ,
262
+ className : blockquoteClass || `${ dataAttribute } -${ calloutType . toLowerCase ( ) } ` ,
263
263
[ `data-${ dataAttribute } ` ] : calloutType ,
264
264
"data-expandable" : String ( dataExpandable ) ,
265
265
"data-expanded" : String ( dataExpanded ) ,
You can’t perform that action at this time.
0 commit comments