From c00702849872b2ef03a20c3377edc1265ec5436b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 17 May 2023 17:15:20 +0800 Subject: [PATCH] fix image tag --- scripts/tags/lib/image.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 += ''