Skip to content

Commit c34ecc5

Browse files
committed
fix exclude setting
1 parent 9010a5f commit c34ecc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Highlighter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class CodeHighlighter {
198198
* All languages that are safe to use with Obsidian's `registerMarkdownCodeBlockProcessor`.
199199
*/
200200
obsidianSafeLanguageNames(): string[] {
201-
return this.loadedLanguages.filter(lang => !languageNameBlacklist.has(lang));
201+
return this.loadedLanguages.filter(lang => !languageNameBlacklist.has(lang) && !this.plugin.loadedSettings.disabledLanguages.includes(lang));
202202
}
203203

204204
/**

0 commit comments

Comments
 (0)