Commit c186df87 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'content-editor-remove-markdown-it-from-build' into 'master'

Remove Markdown-it from Content Editor build

See merge request gitlab-org/gitlab!59891
parents 2bfd8dc9 c5b0ea64
import { import {
MarkdownSerializer as ProseMirrorMarkdownSerializer, MarkdownSerializer as ProseMirrorMarkdownSerializer,
defaultMarkdownSerializer, defaultMarkdownSerializer,
} from 'prosemirror-markdown'; } from 'prosemirror-markdown/src/to_markdown';
import { DOMParser as ProseMirrorDOMParser } from 'prosemirror-model'; import { DOMParser as ProseMirrorDOMParser } from 'prosemirror-model';
const wrapHtmlPayload = (payload) => `<div>${payload}</div>`; const wrapHtmlPayload = (payload) => `<div>${payload}</div>`;
......
...@@ -101,7 +101,7 @@ module.exports = (path, options = {}) => { ...@@ -101,7 +101,7 @@ module.exports = (path, options = {}) => {
'^.+\\.(md|zip|png)$': 'jest-raw-loader', '^.+\\.(md|zip|png)$': 'jest-raw-loader',
}, },
transformIgnorePatterns: [ transformIgnorePatterns: [
'node_modules/(?!(@gitlab/ui|@gitlab/favicon-overlay|bootstrap-vue|three|monaco-editor|monaco-yaml|fast-mersenne-twister)/)', 'node_modules/(?!(@gitlab/ui|@gitlab/favicon-overlay|bootstrap-vue|three|monaco-editor|monaco-yaml|fast-mersenne-twister|prosemirror-markdown)/)',
], ],
timers: 'fake', timers: 'fake',
testEnvironment: '<rootDir>/spec/frontend/environment.js', testEnvironment: '<rootDir>/spec/frontend/environment.js',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment