Use url for markdown links

This commit is contained in:
Héctor Ramón Jiménez 2024-07-21 18:16:32 +02:00
parent 5443e4d828
commit f830454ffa
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 24 additions and 9 deletions

View file

@ -16,7 +16,7 @@ struct Markdown {
#[derive(Debug, Clone)]
enum Message {
Edit(text_editor::Action),
LinkClicked(String),
LinkClicked(markdown::Url),
}
impl Markdown {
@ -52,7 +52,7 @@ impl Markdown {
}
}
Message::LinkClicked(link) => {
let _ = open::that_in_background(link);
let _ = open::that_in_background(link.to_string());
}
}
}