mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed buid
This commit is contained in:
parent
c89edd7b22
commit
963eeccf7b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user