From b43606539e2de7ba1be1ca87b0ead9266bcbfc4a Mon Sep 17 00:00:00 2001 From: Mark Cho Date: Thu, 18 Dec 2025 14:22:55 -0800 Subject: [PATCH] Add support for highlighting code blocks using highlight.js. --- templates/main.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/templates/main.html b/templates/main.html index d072661..651c444 100644 --- a/templates/main.html +++ b/templates/main.html @@ -418,6 +418,11 @@ background-color: transparent; padding: 0; } + /* Highlight.js overrides to match app theme */ + pre code.hljs { + background: var(--code-bg); + padding: 0; + } blockquote { border-left: 4px solid var(--border-color-light); padding-left: 16px; @@ -454,6 +459,11 @@ {% if mermaid_enabled %} {% endif %} + + + + +