From f2e190a39fb8c6ff1d5a5dcbba82899e96d89509 Mon Sep 17 00:00:00 2001 From: Szeto Date: Wed, 14 Jan 2026 16:35:00 +0800 Subject: [PATCH] Use configurable theme for Shiki highlighting Replaces the hardcoded 'nord' theme with a dynamic theme from options when highlighting code blocks with Shiki. This allows users to specify their preferred theme. --- src/Nodes/CodeBlockShiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nodes/CodeBlockShiki.php b/src/Nodes/CodeBlockShiki.php index e69e5cd63..bcb5201c1 100644 --- a/src/Nodes/CodeBlockShiki.php +++ b/src/Nodes/CodeBlockShiki.php @@ -46,7 +46,7 @@ public function renderHTML($node, $HTMLAttributes = []) } try { - $content = Shiki::highlight($code, $language, 'nord'); + $content = Shiki::highlight($code, $language, $this->options['theme']); } catch (DomainException $exception) { $mergedAttributes = HTML::mergeAttributes( $this->options['HTMLAttributes'],