This function checks if the input string contains an image URL (PNG or JPG) and formats it as an HTML img tag with a specified height.
Value
A character string with the HTML img tag if an image URL is found, otherwise the input string.
Examples
check_images("https://example.com/image.png")
#> [1] "<img src =\"https://example.com/image.png\" height = \"50\"></img>"
check_images("https://example.com/image.jpg")
#> [1] "<img src =\"https://example.com/image.jpg\" height = \"50\"></img>"
check_images("https://example.com/text")
#> [1] "https://example.com/text"