Fix documentation of markdown and rich_text

This commit is contained in:
Héctor Ramón Jiménez 2025-02-04 19:07:24 +01:00
parent 5655998761
commit 24cf355e96
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 87 additions and 51 deletions

View file

@ -280,7 +280,7 @@ impl Generator {
.font(Font::MONOSPACE);
let description =
markdown::view(&self.theme(), description)
markdown(description, self.theme())
.map(Message::UrlClicked);
let labels =
@ -344,12 +344,12 @@ impl Generator {
} else {
container(
scrollable(
markdown::view(
markdown(
preview,
markdown::Settings::with_text_size(
12,
&self.theme(),
self.theme(),
),
preview,
)
.map(Message::UrlClicked),
)

View file

@ -164,11 +164,11 @@ impl Markdown {
};
let preview = markdown::view_with(
items,
&self.theme,
&MarkdownViewer {
images: &self.images,
},
&self.theme,
items,
);
row![