From 4629457932accaa24abefc9a8f444dc9398a94d5 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 9 Mar 2022 20:07:17 +0100 Subject: feature: initial table support First take at parsing and serializing markdown tables. Use TableHead and TableBody nodes to mimic the markdown table structure with a single heading line on top and multiple td lines following. Signed-off-by: Max --- package.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 872c15a2c..d77292092 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,10 @@ "@tiptap/extension-paragraph": "^2.0.0-beta.22", "@tiptap/extension-placeholder": "^2.0.0-beta.44", "@tiptap/extension-strike": "^2.0.0-beta.26", + "@tiptap/extension-table": "^2.0.0-beta.48", + "@tiptap/extension-table-cell": "^2.0.0-beta.20", + "@tiptap/extension-table-header": "^2.0.0-beta.22", + "@tiptap/extension-table-row": "^2.0.0-beta.19", "@tiptap/extension-task-item": "^2.0.0-beta.31", "@tiptap/extension-task-list": "^2.0.0-beta.26", "@tiptap/extension-text": "^2.0.0-beta.15", @@ -104,6 +108,7 @@ "eslint-plugin-cypress": "^2.12.1", "jest": "^27.5.1", "jest-environment-jsdom": "^27.5.1", + "jest-raw-loader": "^1.0.1", "jest-serializer-vue": "^2.0.2", "regenerator-runtime": "^0.13.9" }, @@ -112,7 +117,9 @@ "testEnvironment": "jest-environment-jsdom", "moduleFileExtensions": [ "js", - "vue" + "vue", + "md", + "html" ], "moduleNameMapper": { "^@/(.*)$": "/src/$1" @@ -124,7 +131,9 @@ ], "transform": { "^.+\\.js$": "/node_modules/babel-jest", - ".*\\.(vue)$": "/node_modules/@vue/vue2-jest" + ".*\\.(vue)$": "/node_modules/@vue/vue2-jest", + ".*\\.md$": "jest-raw-loader", + ".*\\.html$": "jest-raw-loader" }, "snapshotSerializers": [ "/node_modules/jest-serializer-vue" -- cgit v1.2.3