on master help sign in
fix: There is no such thing as markup.normal, use ui.text
commite7f5ec55617f9f6cddfd78b3c42960f757705f2b authorBlaž Hrastnik <blaz@mxxn.io> dateMon 7 Feb 2022, 10:28 (5 years ago) parentf5b95be
1 file changed+1−4
helix-term/src/ui/markdown.rs+1−4
helix-term/src/ui/markdown.rs+1−4
@@ -22,7 +22,6 @@ pub struct Markdown {
2222
2323 config_loader: Arc<syntax::Loader>,
2424
25− text_style: String,
2625 block_style: String,
2726 heading_style: String,
2827}
@@ -35,14 +34,12 @@ impl Markdown {
3534 Self {
3635 contents,
3736 config_loader,
38− text_style: "markup.normal".into(),
3937 block_style: "markup.raw.inline".into(),
4038 heading_style: "markup.heading".into(),
4139 }
4240 }
4341
4442 pub fn style_group(mut self, suffix: &str) -> Self {
45− self.text_style = format!("markup.normal.{}", suffix);
4643 self.block_style = format!("markup.raw.inline.{}", suffix);
4744 self.heading_style = format!("markup.heading.{}", suffix);
4845 self
@@ -78,7 +75,7 @@ impl Markdown {
7875 .unwrap_or_default()
7976 };
8077 }
81− let text_style = get_theme!(self.text_style);
78+ let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default();
8279 let code_style = get_theme!(self.block_style);
8380 let heading_style = get_theme!(self.heading_style);
8481