Use dark background for inline code in markdown widget
This commit is contained in:
parent
ddcf02f9d0
commit
4dc7b9b961
2 changed files with 10 additions and 13 deletions
|
|
@ -28,11 +28,8 @@ impl Markdown {
|
|||
(
|
||||
Self {
|
||||
content: text_editor::Content::with_text(INITIAL_CONTENT),
|
||||
items: markdown::parse(
|
||||
INITIAL_CONTENT,
|
||||
theme.extended_palette(),
|
||||
)
|
||||
.collect(),
|
||||
items: markdown::parse(INITIAL_CONTENT, &theme.palette())
|
||||
.collect(),
|
||||
theme,
|
||||
},
|
||||
widget::focus_next(),
|
||||
|
|
@ -49,7 +46,7 @@ impl Markdown {
|
|||
if is_edit {
|
||||
self.items = markdown::parse(
|
||||
&self.content.text(),
|
||||
self.theme.extended_palette(),
|
||||
&self.theme.palette(),
|
||||
)
|
||||
.collect();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue