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) {