Skip to content

Commit c80774a

Browse files
pierrejeambrunfweilun
authored andcommitted
Flexible form use ReactMarkdown instead of default Markdown component (apache#54032)
1 parent 1e1fb8a commit c80774a

File tree

1 file changed

+2
-3
lines changed
  • airflow-core/src/airflow/ui/src/components/FlexibleForm

1 file changed

+2
-3
lines changed

airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldRow.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
import { Field, Stack } from "@chakra-ui/react";
2020
import { useState } from "react";
2121
import { useTranslation } from "react-i18next";
22-
import Markdown from "react-markdown";
23-
import remarkGfm from "remark-gfm";
2422

23+
import ReactMarkdown from "src/components/ReactMarkdown";
2524
import { paramPlaceholder, useParamStore } from "src/queries/useParamStore";
2625

2726
import type { FlexibleFormElementProps } from ".";
@@ -66,7 +65,7 @@ export const FieldRow = ({ name, onUpdate: rowOnUpdate }: FlexibleFormElementPro
6665
{param.description === null ? (
6766
param.schema.description_md === undefined ? undefined : (
6867
<Field.HelperText>
69-
<Markdown remarkPlugins={[remarkGfm]}>{param.schema.description_md}</Markdown>
68+
<ReactMarkdown>{param.schema.description_md}</ReactMarkdown>
7069
</Field.HelperText>
7170
)
7271
) : (

0 commit comments

Comments
 (0)