From cac458cb003f7aaf99b1860e0241422560be70e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Mon, 13 Apr 2026 18:01:47 +0200 Subject: [PATCH] fix deflist highlight --- client/components/codeEditor/customHighlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/codeEditor/customHighlight.js b/client/components/codeEditor/customHighlight.js index 01b132093..ab498f78f 100644 --- a/client/components/codeEditor/customHighlight.js +++ b/client/components/codeEditor/customHighlight.js @@ -82,7 +82,7 @@ export function tokenizeCustomMarkdown(text) { } // --- single line def list --- - const singleLineRegex = /^([^:\n]*\S)(\s*)(::)([^\n]*)$/dmy; + const singleLineRegex = /^(?=.*[^:])(.+?)(\s*)(::)([^\n]*)$/dmy; const match = singleLineRegex.exec(lineText); if(match) {