We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9010a5f commit c34ecc5Copy full SHA for c34ecc5
src/Highlighter.ts
@@ -198,7 +198,7 @@ export class CodeHighlighter {
198
* All languages that are safe to use with Obsidian's `registerMarkdownCodeBlockProcessor`.
199
*/
200
obsidianSafeLanguageNames(): string[] {
201
- return this.loadedLanguages.filter(lang => !languageNameBlacklist.has(lang));
+ return this.loadedLanguages.filter(lang => !languageNameBlacklist.has(lang) && !this.plugin.loadedSettings.disabledLanguages.includes(lang));
202
}
203
204
/**
0 commit comments