Skip to content

Commit

Permalink
Load extra themes even with theme=css
Browse files Browse the repository at this point in the history
Closes #1775
  • Loading branch information
Keats committed Mar 15, 2022
1 parent 2feda3e commit 1f5a524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/config/src/config/markup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ impl Markdown {
self.extra_syntax_set = Some(extra_syntax_set);
}

if self.highlight_theme == "css" {
return Ok(());
}

if let Some(extra_theme_set) = loaded_extra_highlight_themes {
self.extra_theme_set = Arc::new(Some(extra_theme_set));
}

if self.highlight_theme == "css" {
return Ok(());
}

// Validate that the chosen highlight_theme exists in the loaded highlight theme sets
if !THEME_SET.themes.contains_key(&self.highlight_theme) {
if let Some(extra) = &*self.extra_theme_set {
Expand Down

0 comments on commit 1f5a524

Please sign in to comment.