1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fixed buid

This commit is contained in:
Laurent Cozic 2023-06-01 15:25:40 +01:00
parent c89edd7b22
commit 963eeccf7b

View File

@ -5,10 +5,9 @@ const htmlentities = (new Entities()).encode;
function attributesHtml(attributes, options = null) {
if (!attributes) return '';
options = {
options = Object.assign({}, {
skipEmptyClass: false,
...options,
};
}, options);
const output = [];
@ -425,10 +424,9 @@ rules.code = {
}
function imageMarkdownFromNode(node, options = null) {
options = {
options = Object.assign({}, {
preserveImageTagsWithSize: false,
...options,
};
}, options);
if (options.preserveImageTagsWithSize && (node.getAttribute('width') || node.getAttribute('height'))) {
return node.outerHTML;