Add background styling to span / rich text
This commit is contained in:
parent
23a7e9f981
commit
ddcf02f9d0
7 changed files with 141 additions and 16 deletions
|
|
@ -28,8 +28,11 @@ impl Markdown {
|
|||
(
|
||||
Self {
|
||||
content: text_editor::Content::with_text(INITIAL_CONTENT),
|
||||
items: markdown::parse(INITIAL_CONTENT, theme.palette())
|
||||
.collect(),
|
||||
items: markdown::parse(
|
||||
INITIAL_CONTENT,
|
||||
theme.extended_palette(),
|
||||
)
|
||||
.collect(),
|
||||
theme,
|
||||
},
|
||||
widget::focus_next(),
|
||||
|
|
@ -46,7 +49,7 @@ impl Markdown {
|
|||
if is_edit {
|
||||
self.items = markdown::parse(
|
||||
&self.content.text(),
|
||||
self.theme.palette(),
|
||||
self.theme.extended_palette(),
|
||||
)
|
||||
.collect();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue