Skip to content

Commit

Permalink
[Security Solution][All] Replace old markdown renderer with the new o…
Browse files Browse the repository at this point in the history
…ne (#80301)
  • Loading branch information
cnasikas authored Oct 21, 2020
1 parent 42c7c0d commit ad2fe78
Show file tree
Hide file tree
Showing 29 changed files with 260 additions and 904 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,14 @@
* you may not use this file except in compliance with the Elastic License.
*/

import {
EuiFlexGroup,
EuiFlexItem,
EuiButtonEmpty,
EuiButton,
EuiMarkdownFormat,
} from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, EuiButton } from '@elastic/eui';
import React, { useCallback } from 'react';
import styled from 'styled-components';

import * as i18n from '../case_view/translations';
import { Form, useForm, UseField } from '../../../shared_imports';
import { schema, Content } from './schema';
import {
MarkdownEditorForm,
parsingPlugins,
processingPlugins,
} from '../../../common/components/markdown_editor/eui_form';
import { MarkdownRenderer, MarkdownEditorForm } from '../../../common/components/markdown_editor';

const ContentWrapper = styled.div`
padding: ${({ theme }) => `${theme.eui.euiSizeM} ${theme.eui.euiSizeL}`};
Expand Down Expand Up @@ -111,12 +101,7 @@ export const UserActionMarkdown = ({
</Form>
) : (
<ContentWrapper data-test-subj="user-action-markdown">
<EuiMarkdownFormat
parsingPluginList={parsingPlugins}
processingPluginList={processingPlugins}
>
{content}
</EuiMarkdownFormat>
<MarkdownRenderer>{content}</MarkdownRenderer>
</ContentWrapper>
);
};

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ad2fe78

Please sign in to comment.