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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/behaviors/markdown/nodes/table_row.js')
-rw-r--r--app/assets/javascripts/behaviors/markdown/nodes/table_row.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/assets/javascripts/behaviors/markdown/nodes/table_row.js b/app/assets/javascripts/behaviors/markdown/nodes/table_row.js
deleted file mode 100644
index 3830dae4f0d..00000000000
--- a/app/assets/javascripts/behaviors/markdown/nodes/table_row.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
-export default () => ({
- name: 'table_row',
- schema: {
- content: 'table_cell+',
- parseDOM: [{ tag: 'tr' }],
- toDOM: () => ['tr', 0],
- },
- toMarkdown: (state, node) => {
- const cellWidths = [];
-
- state.flushClose(1);
-
- state.write('| ');
- node.forEach((cell, _, i) => {
- if (i) state.write(' | ');
-
- const { length } = state.out;
- state.render(cell, node, i);
- cellWidths.push(state.out.length - length);
- });
- state.write(' |');
-
- state.closeBlock(node);
-
- return cellWidths;
- },
-});