From 3a81521e6ff64b4bc11bf1f5f600a7cfccc59010 Mon Sep 17 00:00:00 2001 From: David Bolack Date: Mon, 19 Aug 2024 19:40:55 -0500 Subject: [PATCH] Work around users using Definition lists as paragraph indents. --- shared/naturalcrit/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index fcc0a27bf..804d6b2cf 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -395,7 +395,7 @@ const definitionListsSingleLine = { .map((emoji)=>firstLine = firstLine.replace(emoji.raw, 'x'.repeat(emoji.raw.length))); const newMatch = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym.exec(firstLine); - if((newMatch) && (newMatch[0].length > 0) && (newMatch[1].length > 0)) { + if((newMatch) && newMatch[1].length > 0) { // Test the lengths to handle two : paragraph breaks exception definitions.push({ dt : this.lexer.inlineTokens(originalLine.slice(0, newMatch[1].length).trim()),