Remove Url::scheme check in markdown::parse_with
This commit is contained in:
parent
6e894355d4
commit
a9c1b81b58
1 changed files with 1 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue