Daniel Rodrigues 2025-04-18 15:45:11 +01:00 committed by GitHub
commit 0bdbb5a71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { RuleOptions } from '../../MdToHtml';
import Setting from '../../../lib/models/Setting';
export default {
@ -62,7 +63,7 @@ export default {
return self.renderToken(tokens, idx, options, env, self);
};
const exportButtonMarkup = isDesktop(ruleOptions.platformName) ? exportGraphButton(ruleOptions) : '';
const exportButtonMarkup = (isDesktop(ruleOptions.platformName) && Setting.value('editor.codeView')) ? exportGraphButton(ruleOptions) : '';
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
markdownIt.renderer.rules.fence = function(tokens: any[], idx: number, options: any, env: any, self: any) {