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