, which breaks the html-to-md conversion.
return (
`
`
+ `
`
+ '
'
);
}
const mime = resource.mime ? resource.mime.toLowerCase() : '';
if (ResourceModel.isSupportedImageMimeType(mime)) {
let newSrc = '';
const timestampParameter = `?t=${resource.updated_time}`;
const idToUrlResult = itemIdToUrl?.(resource.id, timestampParameter) ?? null;
if (idToUrlResult !== null) {
newSrc = idToUrlResult;
} else {
const temp = [];
if (resourceBaseUrl) {
temp.push(resourceBaseUrl);
} else {
temp.push('./');
}
temp.push(ResourceModel.filename(resource));
temp.push(timestampParameter);
newSrc = temp.join('');
}
// let newSrc = `./${ResourceModel.filename(resource)}`;
// newSrc += `?t=${resource.updated_time}`;
return {
'data-resource-id': resource.id,
src: newSrc,
};
}
return null;
};
// Used in mobile app when enableLongPress = true. Tells for how long
// the resource should be pressed before the menu is shown.
export const longPressDelay = 500;