From afe2e5d6915d52dd47bffbaa97f16cb947310eaf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 23:25:43 +0000 Subject: [PATCH 1/2] Initial plan From 8835e72adcb50bc3254f52a985e70ab35621e3c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 23:28:54 +0000 Subject: [PATCH 2/2] Skip call sign auto-detection inside code and pre elements Agent-Logs-Url: https://github.com/phieri/callsign.js/sessions/065dc63f-540e-41b2-bf49-ee07d2ecfa63 Co-authored-by: phieri <12006381+phieri@users.noreply.github.com> --- src/callsign.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/callsign.js b/src/callsign.js index 532ae21..e6ef2f0 100644 --- a/src/callsign.js +++ b/src/callsign.js @@ -389,11 +389,13 @@ class Callsign extends HTMLElement { NodeFilter.SHOW_TEXT, { acceptNode(node) { - // Skip script and style elements + // Skip script, style, code and pre elements const parent = node.parentElement; if (!parent || parent.tagName === 'SCRIPT' || parent.tagName === 'STYLE' || - parent.tagName === 'CALL-SIGN') { + parent.tagName === 'CALL-SIGN' || + parent.tagName === 'CODE' || + parent.tagName === 'PRE') { return NodeFilter.FILTER_REJECT; } // Only accept nodes with potential call signs