You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Resolves #4727: Add support for safe mode, which temporarily disables note rendering and plugins
This commit is contained in:
@@ -7,6 +7,7 @@ import htmlUtils from './htmlUtils';
|
||||
import Resource from './models/Resource';
|
||||
|
||||
export class MarkupLanguageUtils {
|
||||
|
||||
private lib_(language: MarkupLanguage) {
|
||||
if (language === MarkupLanguage.Html) return htmlUtils;
|
||||
if (language === MarkupLanguage.Markdown) return markdownUtils;
|
||||
@@ -31,6 +32,7 @@ export class MarkupLanguageUtils {
|
||||
pluginOptions: pluginOptions,
|
||||
tempDir: Setting.value('tempDir'),
|
||||
fsDriver: shim.fsDriver(),
|
||||
isSafeMode: Setting.value('isSafeMode'),
|
||||
}, options);
|
||||
|
||||
return new MarkupToHtml(options);
|
||||
|
||||
Reference in New Issue
Block a user