diff --git a/lib/renderer.js b/lib/renderer.js index 6db2e3f..35a3627 100644 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -141,19 +141,19 @@ rules.table_close = function (/*tokens, idx, options*/) { return '\n'; }; rules.thead_open = function (/*tokens, idx, options*/) { - return '\t\n'; + return '\n'; }; rules.thead_close = function (/*tokens, idx, options*/) { - return '\t\n'; + return '\n'; }; rules.tbody_open = function (/*tokens, idx, options*/) { - return '\t\n'; + return '\n'; }; rules.tbody_close = function (/*tokens, idx, options*/) { - return '\t\n'; + return '\n'; }; rules.tr_open = function (/*tokens, idx, options*/) { - return '\t\t'; + return ''; }; rules.tr_close = function (/*tokens, idx, options*/) { return '\n'; diff --git a/test/fixtures/remarkable/tables.txt b/test/fixtures/remarkable/tables.txt index d1c965d..a7b8042 100644 --- a/test/fixtures/remarkable/tables.txt +++ b/test/fixtures/remarkable/tables.txt @@ -7,13 +7,13 @@ Tests from marked: | Cell 3 | Cell 4 . - - - - - - - + + + + + + +
Heading 1Heading 2
Cell 1Cell 2
Cell 3Cell 4
Heading 1Heading 2
Cell 1Cell 2
Cell 3Cell 4
. @@ -24,13 +24,13 @@ Tests from marked: | Cell 5 | Cell 6 | Cell 7 | Cell 8 | . - - - - - - - + + + + + + +
Header 1Header 2Header 3Header 4
Cell 1Cell 2Cell 3Cell 4
Cell 5Cell 6Cell 7Cell 8
Header 1Header 2Header 3Header 4
Cell 1Cell 2Cell 3Cell 4
Cell 5Cell 6Cell 7Cell 8
. @@ -41,13 +41,13 @@ Cell 1 | Cell 2 Cell 3 | Cell 4 . - - - - - - - + + + + + + +
Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4
Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4
. @@ -58,13 +58,13 @@ Cell 1 |Cell 2 |Cell 3 |Cell 4 *Cell 5*|Cell 6 |Cell 7 |Cell 8 . - - - - - - - + + + + + + +
Header 1Header 2Header 3Header 4
Cell 1Cell 2Cell 3Cell 4
Cell 5Cell 6Cell 7Cell 8
Header 1Header 2Header 3Header 4
Cell 1Cell 2Cell 3Cell 4
Cell 5Cell 6Cell 7Cell 8
. @@ -78,12 +78,12 @@ baz|baz .
- - - - - - + + + + + +
foofoo
barbar
foofoo
barbar

baz|baz

@@ -99,12 +99,12 @@ Nested tables inside lists: .