diff options
author | Max <max@nextcloud.com> | 2022-03-15 14:44:10 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-03-31 15:29:21 +0300 |
commit | 39cf02c6e67e1784e23b771bb92dcdfdf6c408ba (patch) | |
tree | 0c684a1f1b5020eb25be370141415aa7230143c4 /src/tests | |
parent | 921080c90486ae4872984724f6ebccceb7d673a4 (diff) |
fix: keep tables separate in markdown
Also make sure that table rows are rendered on one line each.
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/tables.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/tables.spec.js b/src/tests/tables.spec.js index 7e0bdce33..3ff44f1c8 100644 --- a/src/tests/tables.spec.js +++ b/src/tests/tables.spec.js @@ -17,7 +17,7 @@ describe('Table', () => { test('serialize from editor', () => { const tiptap = editorWithContent(markdownit.render(input)) const serializer = createMarkdownSerializer(tiptap.schema) - expect(serializer.serialize(tiptap.state.doc)).toBe(input.replace(/\n$/, '')) + expect(serializer.serialize(tiptap.state.doc)).toBe(input) }) test('handle html table with other structure', () => { |