markdown parser new way

This commit is contained in:
Piotr 2024-06-15 22:02:23 +02:00
parent 9eb37da669
commit dac4c649f7
4 changed files with 196 additions and 177 deletions

View file

@ -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()
}