Skip to content

Commit

Permalink
fix(md-enhance): fix feature detecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Oct 24, 2023
1 parent 84c004d commit a179011
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/md-enhance/src/node/plugin.ts
Expand Up @@ -97,7 +97,12 @@ export const mdEnhancePlugin =
const enabled =
key in options ? Boolean(options[key]) : (gfm && options.gfm) || false;

return enabled && pkg ? isInstalled(pkg) : true;
return (
enabled &&
(pkg
? isInstalled(pkg, Boolean(options[key]) || (gfm && options.gfm))
: true)
);
};

const locales = getLocales({
Expand Down

0 comments on commit a179011

Please sign in to comment.