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_cell.js')
-rw-r--r--app/assets/javascripts/behaviors/markdown/nodes/table_cell.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/assets/javascripts/behaviors/markdown/nodes/table_cell.js b/app/assets/javascripts/behaviors/markdown/nodes/table_cell.js
deleted file mode 100644
index f46344ba43c..00000000000
--- a/app/assets/javascripts/behaviors/markdown/nodes/table_cell.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
-export default () => ({
- name: 'table_cell',
- schema: {
- attrs: {
- header: { default: false },
- align: { default: null },
- },
- content: 'inline*',
- isolating: true,
- parseDOM: [
- {
- tag: 'td, th',
- getAttrs: (el) => ({
- header: el.tagName === 'TH',
- align: el.getAttribute('align') || el.style.textAlign,
- }),
- },
- ],
- toDOM: (node) => [node.attrs.header ? 'th' : 'td', { align: node.attrs.align }, 0],
- },
- toMarkdown: (state, node) => {
- state.renderInline(node);
- },
-});