Stop parsing Url in markdown
CommonMark accepts any URI. Co-authored-by: nico2sh <mail@nico2sh.com>
This commit is contained in:
parent
a9c1b81b58
commit
918e45824a
6 changed files with 71 additions and 60 deletions
|
|
@ -44,7 +44,7 @@ enum Message {
|
|||
Result<(Changelog, Vec<changelog::Contribution>), changelog::Error>,
|
||||
),
|
||||
PullRequestFetched(Result<changelog::PullRequest, changelog::Error>),
|
||||
UrlClicked(markdown::Url),
|
||||
LinkClicked(markdown::Uri),
|
||||
TitleChanged(String),
|
||||
CategorySelected(changelog::Category),
|
||||
Next,
|
||||
|
|
@ -113,7 +113,7 @@ impl Generator {
|
|||
|
||||
Task::none()
|
||||
}
|
||||
Message::UrlClicked(url) => {
|
||||
Message::LinkClicked(url) => {
|
||||
let _ = webbrowser::open(url.as_str());
|
||||
|
||||
Task::none()
|
||||
|
|
@ -281,7 +281,7 @@ impl Generator {
|
|||
|
||||
let description =
|
||||
markdown(description, self.theme())
|
||||
.map(Message::UrlClicked);
|
||||
.map(Message::LinkClicked);
|
||||
|
||||
let labels =
|
||||
row(pull_request.labels.iter().map(|label| {
|
||||
|
|
@ -351,7 +351,7 @@ impl Generator {
|
|||
self.theme(),
|
||||
),
|
||||
)
|
||||
.map(Message::UrlClicked),
|
||||
.map(Message::LinkClicked),
|
||||
)
|
||||
.spacing(10),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue