From a9c1b81b5845354177ffcf0c284170bd9c66c967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Jena?= Date: Mon, 16 Jun 2025 15:38:15 +0200 Subject: [PATCH] Remove `Url::scheme` check in `markdown::parse_with` --- widget/src/markdown.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index d778dd6a..5e00da5e 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -603,16 +603,7 @@ fn parse_with<'a>( None } pulldown_cmark::Tag::Link { dest_url, .. } if !metadata => { - match Url::parse(&dest_url) { - Ok(url) - if url.scheme() == "http" - || url.scheme() == "https" => - { - link = Some(url); - } - _ => {} - } - + link = Url::parse(&dest_url).ok(); None } pulldown_cmark::Tag::Image {