summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-04 19:07:24 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-04 19:07:24 +0100
commit24cf355e96d8ae6432ca8972214c2c4f31d07b22 (patch)
tree2cd2c8d168bb2c628356767deb41be89f5d90876 /examples
parent565599876172b3f56d86b119ae453b5bcd8949e1 (diff)
downloadiced-24cf355e96d8ae6432ca8972214c2c4f31d07b22.tar.gz
iced-24cf355e96d8ae6432ca8972214c2c4f31d07b22.tar.bz2
iced-24cf355e96d8ae6432ca8972214c2c4f31d07b22.zip
Fix documentation of `markdown` and `rich_text`
Diffstat (limited to 'examples')
-rw-r--r--examples/changelog/src/main.rs8
-rw-r--r--examples/markdown/src/main.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/changelog/src/main.rs b/examples/changelog/src/main.rs
index a6528ce9..f3b9894f 100644
--- a/examples/changelog/src/main.rs
+++ b/examples/changelog/src/main.rs
@@ -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),
)
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs
index 29625d79..96541342 100644
--- a/examples/markdown/src/main.rs
+++ b/examples/markdown/src/main.rs
@@ -164,11 +164,11 @@ impl Markdown {
};
let preview = markdown::view_with(
+ items,
+ &self.theme,
&MarkdownViewer {
images: &self.images,
},
- &self.theme,
- items,
);
row![