Skip to content

Commit

Permalink
Set default highlight theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed May 5, 2022
1 parent fd8c8ec commit 9020c19
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/entity/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@ use serde::Deserialize;
#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all(deserialize = "snake_case"))]
pub struct MarkdownConfig {
<<<<<<< HEAD
#[serde(default = "MarkdownConfig::default_highlight_code")]
pub highlight_code: bool,
#[serde(default = "MarkdownConfig::default_highlight_theme")]
=======
>>>>>>> Support customize highlight theme
pub highlight_theme: String,
}

impl Default for MarkdownConfig {
fn default() -> Self {
Self {
<<<<<<< HEAD
highlight_code: true,
highlight_theme: Self::default_highlight_theme(),
}
Expand All @@ -33,9 +29,3 @@ impl MarkdownConfig {
true
}
}
=======
highlight_theme: String::from("monokai"),
}
}
}
>>>>>>> Support customize highlight theme

0 comments on commit 9020c19

Please sign in to comment.