Compare commits
1 Commits
1c369e4b25
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39d838a284
|
@@ -74,7 +74,9 @@ impl LinkTarget {
|
|||||||
// If link type is file and the path ends in .svg then make it an image target
|
// If link type is file and the path ends in .svg then make it an image target
|
||||||
if let LinkType::File = link_type
|
if let LinkType::File = link_type
|
||||||
&& (input.to_ascii_lowercase().ends_with(".svg")
|
&& (input.to_ascii_lowercase().ends_with(".svg")
|
||||||
|| input.to_ascii_lowercase().ends_with(".png"))
|
|| input.to_ascii_lowercase().ends_with(".png")
|
||||||
|
|| input.to_ascii_lowercase().ends_with(".avif")
|
||||||
|
|| input.to_ascii_lowercase().ends_with(".webp"))
|
||||||
{
|
{
|
||||||
let src = Self::get_image_src(&input)?;
|
let src = Self::get_image_src(&input)?;
|
||||||
let alt = Self::get_image_alt(&input)?;
|
let alt = Self::get_image_alt(&input)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user