@@ -61,9 +61,15 @@ fn parse<'a>(
64− let text_style = Style::default().fg(Color::Rgb(164, 160, 232)); // lavender
64+ let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default();
65− let code_style = Style::default().fg(Color::Rgb(255, 255, 255)); // white
65+
66+ // TODO: use better scopes for these, `markup.raw.block`, `markup.heading`
67+ let code_style = theme
68+ .map(|theme| theme.get("ui.text.focus"))
69+ .unwrap_or_default(); // white
66− let heading_style = Style::default().fg(Color::Rgb(219, 191, 239)); // lilac
70+ let heading_style = theme
71+ .map(|theme| theme.get("ui.linenr.selected"))
72+ .unwrap_or_default(); // lilac
68 for event in parser {
74 for event in parser {
69 match event {
75 match event {