1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Move ABC rendering from plugin to main app (#13599)

This commit is contained in:
Laurent Cozic
2025-11-15 09:11:29 +00:00
committed by GitHub
parent 5be124b54a
commit 3dca34952b
29 changed files with 760 additions and 299 deletions

View File

@@ -1,5 +1,5 @@
import { MarkupLanguage, MarkupToHtml } from '@joplin/renderer';
import type { MarkupToHtmlConverter, RenderOptions, FsDriver as RendererFsDriver, ResourceInfos } from '@joplin/renderer/types';
import type { MarkupToHtmlConverter, RenderOptions, RenderOptionsGlobalSettings, FsDriver as RendererFsDriver, ResourceInfos } from '@joplin/renderer/types';
import makeResourceModel from './utils/makeResourceModel';
import addPluginAssets from './utils/addPluginAssets';
import { ExtraContentScriptSource, ForwardedJoplinSettings, MarkupRecord } from '../types';
@@ -32,6 +32,7 @@ export interface RenderSettings {
destroyEditPopupSyntax: string;
pluginSettings: Record<string, unknown>;
globalSettings?: RenderOptionsGlobalSettings;
requestPluginSetting: (pluginId: string, settingKey: string)=> void;
readAssetBlob: (assetPath: string)=> Promise<Blob>;
}
@@ -135,6 +136,7 @@ export default class Renderer {
splitted: settings.splitted,
mapsToLine: settings.mapsToLine,
whiteBackgroundNoteRendering: markup.language === MarkupLanguage.Html,
globalSettings: settings.globalSettings,
};
const pluginSettingsCacheKey = JSON.stringify(settings.pluginSettings);