Use url for markdown links
This commit is contained in:
parent
5443e4d828
commit
f830454ffa
4 changed files with 24 additions and 9 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue