diff --git a/scripts/tags/lib/image.js b/scripts/tags/lib/image.js index a9db6ba..bc8ccbf 100644 --- a/scripts/tags/lib/image.js +++ b/scripts/tags/lib/image.js @@ -71,7 +71,11 @@ module.exports = ctx => function(args) { if (args.download == 'true') { href = args.src } - el += '' + let download = '' + if (args.alt) { + download = ' download="' + args.alt + '"' + } + el += '' } el += ''