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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user