fix(Utils): in encodeUrisToQmlFormat, use correct variables names

This commit is contained in:
Ronan Abhamon 2016-11-09 15:25:20 +01:00
parent 922ab78698
commit ad73020130

View file

@ -161,14 +161,14 @@ function encodeUrisToQmlFormat (text, options) {
var ext = getExtension(match)
if (includes([ 'jpg', 'jpeg', 'gif', 'png', 'svg' ], ext)) {
images += '<a href="' + match + '"><img' + (
options.imageWidth != null
options.imagesWidth != null
? ' width="' + options.imagesWidth + '"'
: ''
) + (
options.imageHeight != null
options.imagesHeight != null
? ' height="' + options.imagesHeight + '"'
: ''
) + 'src="' + match + '" /></a>'
) + ' src="' + match + '" /></a>'
}
return '<a href="' + match + '">' + match + '</a>'
@ -178,7 +178,7 @@ function encodeUrisToQmlFormat (text, options) {
images = '<div>' + images + '</div>'
}
return images.concat(text)
return images.concat('<p>' + text + '</p>')
}
// -------------------------------------------------------------------