0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Work around users using Definition lists as paragraph indents.

This commit is contained in:
David Bolack
2024-08-19 19:40:55 -05:00
parent a30608a8ae
commit 3a81521e6f

View File

@@ -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()),