1
0
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:
Laurent Cozic
2018-05-14 11:24:19 +01:00
parent a37005446a
commit 526ef7e1d2

View File

@@ -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;
}