Fix documentation of markdown and rich_text
This commit is contained in:
parent
5655998761
commit
24cf355e96
6 changed files with 87 additions and 51 deletions
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue