From 813b9a61b024b14606e57f78f15c02e5125bdd7c Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 17 May 2018 01:29:33 +0100 Subject: [PATCH] Fix trailing space issue --- src/tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tables.js b/src/tables.js index 2cb862b15..ce0d48376 100644 --- a/src/tables.js +++ b/src/tables.js @@ -46,7 +46,7 @@ rules.table = { if (columnCount && !isHeadingRow(firstRow)) { emptyHeader = '|' + ' |'.repeat(columnCount) + '\n' + '|' + ' --- |'.repeat(columnCount) } - + // Ensure there are no blank lines content = content.replace('\n\n', '\n') return '\n\n' + emptyHeader + content + '\n\n'