gitbook-plugin-lightbox
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -7,4 +7,4 @@ "use strict"; | ||
var generateLightBoxHTML = function generateLightBoxHTML(url, title) { | ||
return '<a href="' + url + '" data-lightbox="' + uuid() + '" data-title="' + title + '"></a>'; | ||
var generateLightBoxHTML = function generateLightBoxHTML(img) { | ||
return '<a href="' + img.attr('src') + '" data-lightbox="' + uuid() + '" data-title="' + img.attr('alt') + '">' + img + '</a>'; | ||
}; | ||
@@ -31,3 +31,3 @@ | ||
var target = $(img); | ||
target.replaceWith(generateLightBoxHTML(target.attr('src'), target.attr('alt'))); | ||
target.replaceWith(generateLightBoxHTML(target)); | ||
}); | ||
@@ -34,0 +34,0 @@ _page.content = $.html(); |
{ | ||
"name": "gitbook-plugin-lightbox", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": " A gitbook plugin to show image by lightbox.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103083