@@ -214,10 +214,10 @@
elemToHtml: function imageToHtml(elemNode) {
const {src, alt, href = '', style = {}, width, height} = elemNode || {}
- if (alt === undefined || alt === null || alt === '') {
+ if (alt === undefined || alt === null || alt === '') {
return `<img src="${src}" alt="${alt}">`
} else {
- return `<a data-pswp-width="${alt.split(',')[0]}" data-pswp-height="${alt.split(',')[1]}" href="${src}"><img data-magnify="gallery" data-src="${src}" src="${src}" data-href="${href}" "/></a>`
+ return `<img alt="${alt}" src="${src}" "/>`
}
};
@@ -207,7 +207,7 @@
if (alt === undefined || alt === null || alt === '') {