Skip to content

Commit 1f5a524

Browse files
committed
Load extra themes even with theme=css
Closes #1775
1 parent 2feda3e commit 1f5a524

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/config/src/config/markup.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ impl Markdown {
108108
self.extra_syntax_set = Some(extra_syntax_set);
109109
}
110110

111-
if self.highlight_theme == "css" {
112-
return Ok(());
113-
}
114-
115111
if let Some(extra_theme_set) = loaded_extra_highlight_themes {
116112
self.extra_theme_set = Arc::new(Some(extra_theme_set));
117113
}
118114

115+
if self.highlight_theme == "css" {
116+
return Ok(());
117+
}
118+
119119
// Validate that the chosen highlight_theme exists in the loaded highlight theme sets
120120
if !THEME_SET.themes.contains_key(&self.highlight_theme) {
121121
if let Some(extra) = &*self.extra_theme_set {

0 commit comments

Comments
 (0)