Skip to content

Commit 8de9be8

Browse files
committed
Fix when light and dark themes are the same.
1 parent 5397d17 commit 8de9be8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CodeHighlight.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
*/
1515

16-
$RecipeInfo['CodeHighlight']['Version'] = '2025-03-26';
16+
$RecipeInfo['CodeHighlight']['Version'] = '2025-03-26a';
1717

1818
SDVA($CodeHighlight, [
1919
'css_light' => '',
@@ -33,6 +33,8 @@ function initCodeHighlight() {
3333
$dark = $conf['css_dark'];
3434
$languages = $conf['languages'];
3535

36+
if($light && $light == $dark) $dark = false;
37+
3638
$res = [];
3739
$attrs = [];
3840

0 commit comments

Comments
 (0)