Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-lightbox - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

6

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc