You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-09-16 08:56:40 +02:00
Chore: Merge release-2.13 into dev (#9698)
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
@@ -42,6 +42,11 @@ interface RenderOptions {
|
||||
itemIdToUrl?: ItemIdToUrlHandler;
|
||||
allowedFilePrefixes?: string[];
|
||||
whiteBackgroundNoteRendering?: boolean;
|
||||
|
||||
// For compatibility with MdToHtml options:
|
||||
plugins?: {
|
||||
link_open?: { linkRenderingType?: number };
|
||||
};
|
||||
}
|
||||
|
||||
// https://github.com/es-shims/String.prototype.trimStart/blob/main/implementation.js
|
||||
@@ -107,7 +112,7 @@ export default class HtmlToHtml {
|
||||
...options,
|
||||
};
|
||||
|
||||
const cacheKey = md5(escape(markup));
|
||||
const cacheKey = md5(escape(JSON.stringify({ markup, options })));
|
||||
let html = this.cache_.value(cacheKey);
|
||||
|
||||
if (!html) {
|
||||
@@ -142,6 +147,7 @@ export default class HtmlToHtml {
|
||||
ResourceModel: this.ResourceModel_,
|
||||
postMessageSyntax: options.postMessageSyntax,
|
||||
enableLongPress: options.enableLongPress,
|
||||
...options.plugins?.link_open,
|
||||
});
|
||||
|
||||
if (!r.html) return null;
|
||||
|
Reference in New Issue
Block a user