-
+
+
);
};
diff --git a/src/plugins/vis_type_markdown/tsconfig.json b/src/plugins/vis_type_markdown/tsconfig.json
index 73c6d160696ac..833dc7404cc0f 100644
--- a/src/plugins/vis_type_markdown/tsconfig.json
+++ b/src/plugins/vis_type_markdown/tsconfig.json
@@ -12,11 +12,11 @@
"@kbn/core",
"@kbn/expressions-plugin",
"@kbn/visualizations-plugin",
- "@kbn/kibana-react-plugin",
"@kbn/vis-default-editor-plugin",
"@kbn/i18n",
"@kbn/i18n-react",
"@kbn/config-schema",
+ "@kbn/shared-ux-markdown",
],
"exclude": [
"target/**/*",
diff --git a/src/plugins/vis_types/timeseries/public/application/components/vis_types/markdown/vis.js b/src/plugins/vis_types/timeseries/public/application/components/vis_types/markdown/vis.js
index 0701f9498c793..732a59750bd8d 100644
--- a/src/plugins/vis_types/timeseries/public/application/components/vis_types/markdown/vis.js
+++ b/src/plugins/vis_types/timeseries/public/application/components/vis_types/markdown/vis.js
@@ -11,8 +11,7 @@ import React from 'react';
import classNames from 'classnames';
import { get } from 'lodash';
import { ClassNames } from '@emotion/react';
-import { Markdown } from '@kbn/kibana-react-plugin/public';
-
+import { MarkdownButThisComponentIsDEPRECATED } from '@kbn/kibana-react-plugin/public';
import { ErrorComponent } from '../../error';
import { replaceVars } from '../../lib/replace_vars';
import { convertSeriesToVars } from '../../lib/convert_series_to_vars';
@@ -77,7 +76,7 @@ function MarkdownVisualization(props) {
>
{!markdownError && (
-
- {error.message}
+
),
});
diff --git a/src/plugins/visualizations/tsconfig.json b/src/plugins/visualizations/tsconfig.json
index b428e361d1985..f0791546d0891 100644
--- a/src/plugins/visualizations/tsconfig.json
+++ b/src/plugins/visualizations/tsconfig.json
@@ -64,7 +64,8 @@
"@kbn/serverless",
"@kbn/no-data-page-plugin",
"@kbn/search-response-warnings",
- "@kbn/logging"
+ "@kbn/logging",
+ "@kbn/shared-ux-markdown"
],
"exclude": [
"target/**/*",
diff --git a/x-pack/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx b/x-pack/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx
index 3e4ddc36413c2..c47dd97a736a6 100644
--- a/x-pack/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx
+++ b/x-pack/plugins/apm/public/components/fleet_integration/apm_agents/agent_instructions_accordion.tsx
@@ -17,7 +17,10 @@ import {
import { i18n } from '@kbn/i18n';
import React, { ComponentType } from 'react';
import styled from 'styled-components';
-import { Markdown, useKibana } from '@kbn/kibana-react-plugin/public';
+import {
+ MarkdownButThisComponentIsDEPRECATED,
+ useKibana,
+} from '@kbn/kibana-react-plugin/public';
import {
AgentRuntimeAttachmentProps,
CreateAgentInstructions,
@@ -74,7 +77,7 @@ function AccordionButtonContent({
function InstructionsContent({ markdown }: { markdown: string }) {
return (
- = ({ bannerConfig }) => {
}}
>
-
+
);
diff --git a/x-pack/plugins/banners/tsconfig.json b/x-pack/plugins/banners/tsconfig.json
index e79f9107075f5..019a4ebd7da88 100644
--- a/x-pack/plugins/banners/tsconfig.json
+++ b/x-pack/plugins/banners/tsconfig.json
@@ -11,6 +11,7 @@
"@kbn/licensing-plugin",
"@kbn/config-schema",
"@kbn/i18n",
+ "@kbn/shared-ux-markdown",
],
"exclude": [
"target/**/*",
diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx b/x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx
index fd1e2415d0589..e610ee6bc6052 100644
--- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx
+++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx
@@ -11,7 +11,7 @@ import { CoreTheme } from '@kbn/core/public';
import { Observable } from 'rxjs';
import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme';
import { defaultTheme$ } from '@kbn/presentation-util-plugin/common';
-import { Markdown } from '@kbn/kibana-react-plugin/public';
+import * as md from '@kbn/shared-ux-markdown';
import { StartInitializer } from '../../plugin';
import { RendererStrings } from '../../../i18n';
import { Return as Config } from '../../functions/browser/markdown';
@@ -31,10 +31,11 @@ export const getMarkdownRenderer =
ReactDOM.render(
-
,
diff --git a/x-pack/plugins/canvas/tsconfig.json b/x-pack/plugins/canvas/tsconfig.json
index 45b22e422dc6e..f957160795629 100644
--- a/x-pack/plugins/canvas/tsconfig.json
+++ b/x-pack/plugins/canvas/tsconfig.json
@@ -84,6 +84,7 @@
"@kbn/content-management-plugin",
"@kbn/react-kibana-context-theme",
"@kbn/shared-ux-page-kibana-template",
+ "@kbn/shared-ux-markdown",
],
"exclude": [
"target/**/*",
diff --git a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx b/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx
index 0911f648077c6..de24d3f4e5792 100644
--- a/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx
+++ b/x-pack/plugins/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_help.tsx
@@ -7,7 +7,7 @@
import React from 'react';
import { i18n } from '@kbn/i18n';
-import { Markdown } from '@kbn/kibana-react-plugin/public';
+import * as md from '@kbn/shared-ux-markdown';
import { groupBy } from 'lodash';
import type { IndexPattern } from '../../../../../../types';
import { tinymathFunctions } from '../util';
@@ -39,7 +39,7 @@ function createNewSection(
<>
{getFunctionSignatureLabel(key, operationDefinitionMap, false)}
- {fnDescription ?
: null}
+ {fnDescription ?
: null}
>
),
};
@@ -92,8 +92,9 @@ export function getDocumentationSections({
defaultMessage: 'Filter ratio',
}),
description: (
-
400') / count()
defaultMessage: 'Week over week',
}),
description: (
-