Stop parsing Url in markdown

CommonMark accepts any URI.

Co-authored-by: nico2sh <mail@nico2sh.com>
This commit is contained in:
Héctor Ramón Jiménez 2025-11-21 04:40:41 +01:00
parent a9c1b81b58
commit 918e45824a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 71 additions and 60 deletions

View file

@ -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),
)