You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Don't add new table when processing a table
This commit is contained in:
@@ -365,12 +365,17 @@ function processMdArrayNewLines(md, isTable = false) {
|
||||
return line && line.indexOf('\t') === 0;
|
||||
}
|
||||
|
||||
const isTableLine = function(line) {
|
||||
return line.indexOf('|') === 0;
|
||||
}
|
||||
|
||||
const isPlainParagraph = function(line) {
|
||||
if (!line || !line.length) return false;
|
||||
|
||||
if (isListItem(line)) return false;
|
||||
if (isHeading(line)) return false;
|
||||
if (isCodeLine(line)) return false;
|
||||
if (isTableLine(line)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user