Set max width of linked images to 500px
This commit is contained in:
parent
70c9cee6fe
commit
c2da8bab86
2
qsgen2
2
qsgen2
@ -1152,7 +1152,7 @@ function _linkimg() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Form the replacement HTML link and image tag
|
# 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}}
|
line=${line//"#linkimg ${img_link}"/${img_tag}}
|
||||||
fi
|
fi
|
||||||
modified_content+="${line}\n"
|
modified_content+="${line}\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user