Skip to content

Commit ad2fe78

Browse files
authored
[Security Solution][All] Replace old markdown renderer with the new one (#80301)
1 parent 42c7c0d commit ad2fe78

File tree

29 files changed

+260
-904
lines changed

29 files changed

+260
-904
lines changed

x-pack/plugins/security_solution/public/cases/components/user_action_tree/user_action_markdown.tsx

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,14 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import {
8-
EuiFlexGroup,
9-
EuiFlexItem,
10-
EuiButtonEmpty,
11-
EuiButton,
12-
EuiMarkdownFormat,
13-
} from '@elastic/eui';
7+
import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, EuiButton } from '@elastic/eui';
148
import React, { useCallback } from 'react';
159
import styled from 'styled-components';
1610

1711
import * as i18n from '../case_view/translations';
1812
import { Form, useForm, UseField } from '../../../shared_imports';
1913
import { schema, Content } from './schema';
20-
import {
21-
MarkdownEditorForm,
22-
parsingPlugins,
23-
processingPlugins,
24-
} from '../../../common/components/markdown_editor/eui_form';
14+
import { MarkdownRenderer, MarkdownEditorForm } from '../../../common/components/markdown_editor';
2515

2616
const ContentWrapper = styled.div`
2717
padding: ${({ theme }) => `${theme.eui.euiSizeM} ${theme.eui.euiSizeL}`};
@@ -111,12 +101,7 @@ export const UserActionMarkdown = ({
111101
</Form>
112102
) : (
113103
<ContentWrapper data-test-subj="user-action-markdown">
114-
<EuiMarkdownFormat
115-
parsingPluginList={parsingPlugins}
116-
processingPluginList={processingPlugins}
117-
>
118-
{content}
119-
</EuiMarkdownFormat>
104+
<MarkdownRenderer>{content}</MarkdownRenderer>
120105
</ContentWrapper>
121106
);
122107
};

x-pack/plugins/security_solution/public/common/components/markdown/__snapshots__/index.test.tsx.snap

Lines changed: 0 additions & 58 deletions
This file was deleted.

x-pack/plugins/security_solution/public/common/components/markdown/__snapshots__/markdown_hint.test.tsx.snap

Lines changed: 0 additions & 55 deletions
This file was deleted.

x-pack/plugins/security_solution/public/common/components/markdown/index.test.tsx

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)