1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Fixed error when exporting certain notes that contain plugin content

This commit is contained in:
Laurent Cozic
2024-03-25 12:50:33 +00:00
parent 0839b0314e
commit f85db1496e
9 changed files with 38 additions and 25 deletions

View File

@ -13,6 +13,7 @@ import htmlpack from '@joplin/htmlpack';
const { themeStyle } = require('../../theme');
const { escapeHtml } = require('../../string-utils.js');
import { assetsToHeaders } from '@joplin/renderer';
import getPluginSettingValue from '../plugins/utils/getPluginSettingValue';
export default class InteropService_Exporter_Html extends InteropService_Exporter_Base {
@ -112,6 +113,7 @@ export default class InteropService_Exporter_Html extends InteropService_Exporte
const result = await this.markupToHtml_.render(item.markup_language, bodyMd, this.style_, {
resources: this.resources_,
plainResourceRendering: true,
settingValue: getPluginSettingValue,
});
const noteContent = [];
if (item.title) noteContent.push(`<div class="exported-note-title">${escapeHtml(item.title)}</div>`);