Set max width of linked images to 500px

This commit is contained in:
Stig-Ørjan Smelror 2024-07-10 21:46:41 +02:00
parent 70c9cee6fe
commit c2da8bab86

2
qsgen2
View File

@ -1152,7 +1152,7 @@ function _linkimg() {
fi
# Form the replacement HTML link and image tag
local img_tag="<a href=\"${real_image}\"><img src=\"${real_image}\" alt=\"${img_alt}\" /></a>"
local img_tag="<a href=\"${real_image}\"><img src=\"${real_image}\" alt=\"${img_alt}\" width=\"500\" /></a>"
line=${line//"#linkimg ${img_link}"/${img_tag}}
fi
modified_content+="${line}\n"