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

table_head.js « nodes « markdown « behaviors « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e9b53ee0ac1a3897266132ee0f5074fa1734e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
export default () => ({
  name: 'table_head',
  schema: {
    content: 'table_header_row',
    parseDOM: [{ tag: 'thead' }],
    toDOM: () => ['thead', 0],
  },
  toMarkdown: (state, node) => {
    state.flushClose(1);
    state.renderContent(node);
    state.closeBlock(node);
  },
});