@styla/quilldto-to-html
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "@styla/quilldto-to-html", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "QuillDeltaToHtmlConverter.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:styladev/quill-delta-to-html-parcel.git", |
@@ -446,3 +446,10 @@ "use strict"; | ||
if (this.op.isImage()) { | ||
this.op.attributes.width && (tagAttrs = tagAttrs.concat(makeAttr('width', this.op.attributes.width))); | ||
const {width, alt} = this.op.attributes; | ||
if (width) { | ||
tagAttrs = tagAttrs.concat(makeAttr('width', width)); | ||
} | ||
if (alt || alt === '') { | ||
tagAttrs = tagAttrs.concat(makeAttr('alt', alt)); | ||
} | ||
return tagAttrs.concat(makeAttr('src', url.sanitize(this.op.insert.value + '') + '')); | ||
@@ -449,0 +456,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
48912
1316
1