From e506efce93175fe35ea98fda7713cf8d6d3b6777 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 04:57:51 +0000 Subject: [PATCH 1/2] Initial plan From bfc7301f1813ebfb19dd40003c10cb271225cc9b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 05:02:26 +0000 Subject: [PATCH 2/2] Fix invalid SRI hash for pako.min.js and skip double-highlighting in hljs Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com> --- desktop-app/resources/js/script.js | 2 +- index.html | 2 +- script.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop-app/resources/js/script.js b/desktop-app/resources/js/script.js index dc6d741..60c28e1 100644 --- a/desktop-app/resources/js/script.js +++ b/desktop-app/resources/js/script.js @@ -302,7 +302,7 @@ This is a fully client-side application. Your content never leaves your browser markdownPreview.querySelectorAll("pre code").forEach((block) => { try { - if (!block.classList.contains('mermaid')) { + if (!block.classList.contains('mermaid') && !block.classList.contains('hljs')) { hljs.highlightElement(block); } } catch (e) { diff --git a/index.html b/index.html index 73d4118..f2d98ee 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ - +