Skip to content

Commit

Permalink
[7.x] [Security Solution][All] Replace old markdown renderer with the…
Browse files Browse the repository at this point in the history
… new one (#80301) (#81280)
  • Loading branch information
cnasikas authored Oct 21, 2020
1 parent 2c44e24 commit 2a09061
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 2a09061

Please sign in to comment.