0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 16:38:38 +00:00

fix deflist highlight

This commit is contained in:
Víctor Losada Hernández
2026-04-13 18:01:47 +02:00
parent 6d69961d7a
commit cac458cb00
@@ -82,7 +82,7 @@ export function tokenizeCustomMarkdown(text) {
} }
// --- single line def list --- // --- single line def list ---
const singleLineRegex = /^([^:\n]*\S)(\s*)(::)([^\n]*)$/dmy; const singleLineRegex = /^(?=.*[^:])(.+?)(\s*)(::)([^\n]*)$/dmy;
const match = singleLineRegex.exec(lineText); const match = singleLineRegex.exec(lineText);
if(match) { if(match) {