From 2ccf4f2261d1fb06c92ac0df57daba6e7f6ada1b Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 5 Apr 2026 10:44:14 -0400 Subject: [PATCH] Clarify comment: @mention highlight skips markdown-rendered elements markdown.js already calls renderMarkdownElements() on DOMContentLoaded for all [data-markdown] elements; ticket.js only processes plain-text comments to avoid double-rendering. Co-Authored-By: Claude Sonnet 4.6 --- assets/js/ticket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/ticket.js b/assets/js/ticket.js index 3d9e17a..705b48a 100644 --- a/assets/js/ticket.js +++ b/assets/js/ticket.js @@ -1181,7 +1181,7 @@ function highlightMentions(text) { document.addEventListener('DOMContentLoaded', function() { initMentionAutocomplete(); - // Highlight existing mentions in comments + // Highlight @mentions in plain-text comments (markdown.js handles [data-markdown] elements) document.querySelectorAll('.comment-text').forEach(el => { if (!el.hasAttribute('data-markdown')) { el.innerHTML = highlightMentions(el.innerHTML);