markdown parser new way
This commit is contained in:
parent
9eb37da669
commit
dac4c649f7
4 changed files with 196 additions and 177 deletions
|
|
@ -38,7 +38,7 @@ impl Application for Window {
|
|||
}
|
||||
|
||||
fn view(&self) -> cosmic::prelude::Element<Self::Message> {
|
||||
let md = widget::text::markdown(self.markdown_text.clone());
|
||||
let md = widget::text::markdown(&self.markdown_text);
|
||||
|
||||
widget::row().push(widget::scrollable(md)).into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue