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_of_contents.js')
-rw-r--r--app/assets/javascripts/behaviors/markdown/nodes/table_of_contents.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/assets/javascripts/behaviors/markdown/nodes/table_of_contents.js b/app/assets/javascripts/behaviors/markdown/nodes/table_of_contents.js
deleted file mode 100644
index 4a0256c4644..00000000000
--- a/app/assets/javascripts/behaviors/markdown/nodes/table_of_contents.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import { __ } from '~/locale';
-import { HIGHER_PARSE_RULE_PRIORITY } from '../constants';
-
-// Transforms generated HTML back to GFM for Banzai::Filter::TableOfContentsFilter
-export default () => ({
- name: 'table_of_contents',
- schema: {
- group: 'block',
- atom: true,
- parseDOM: [
- {
- tag: 'ul.section-nav',
- priority: HIGHER_PARSE_RULE_PRIORITY,
- },
- {
- tag: 'p.table-of-contents',
- priority: HIGHER_PARSE_RULE_PRIORITY,
- },
- ],
- toDOM: () => ['p', { class: 'table-of-contents' }, __('Table of Contents')],
- },
- toMarkdown: (state, node) => {
- state.write('[[_TOC_]]');
- state.closeBlock(node);
- },
-});