1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Server: Fixed publishing of notes with HTML markup type

This commit is contained in:
Laurent Cozic 2021-08-12 17:23:49 +01:00
parent dcd5a8d975
commit 97726b02e6
2 changed files with 4 additions and 1 deletions

View File

@ -154,6 +154,7 @@ export default class HtmlToHtml {
return { return {
html: html, html: html,
pluginAssets: [], pluginAssets: [],
cssStrings: [],
}; };
} }
@ -168,6 +169,7 @@ export default class HtmlToHtml {
const output: RenderResult = { const output: RenderResult = {
html: splitted.html, html: splitted.html,
pluginAssets: [], pluginAssets: [],
cssStrings: [],
}; };
if (options.externalAssetsOnly) { if (options.externalAssetsOnly) {
@ -182,6 +184,7 @@ export default class HtmlToHtml {
return { return {
html: styleHtml + html, html: styleHtml + html,
pluginAssets: [], pluginAssets: [],
cssStrings: [],
}; };
} }
} }

View File

@ -24,7 +24,7 @@ export interface RenderResultPluginAsset {
export interface RenderResult { export interface RenderResult {
html: string; html: string;
pluginAssets: RenderResultPluginAsset[]; pluginAssets: RenderResultPluginAsset[];
cssStrings?: string[]; cssStrings: string[];
} }
export interface OptionsResourceModel { export interface OptionsResourceModel {