Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-03-15 14:44:10 +0300
committerMax <max@nextcloud.com>2022-03-31 15:29:21 +0300
commit39cf02c6e67e1784e23b771bb92dcdfdf6c408ba (patch)
tree0c684a1f1b5020eb25be370141415aa7230143c4 /src/tests
parent921080c90486ae4872984724f6ebccceb7d673a4 (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.js2
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', () => {