diff --git a/web/app/components/app/configuration/config/automatic/prompt-toast.tsx b/web/app/components/app/configuration/config/automatic/prompt-toast.tsx index 3eaa483c9b..f3e3b318dd 100644 --- a/web/app/components/app/configuration/config/automatic/prompt-toast.tsx +++ b/web/app/components/app/configuration/config/automatic/prompt-toast.tsx @@ -2,17 +2,32 @@ import { RiCloseLine, RiInformation2Fill } from '@remixicon/react' import { useBoolean } from 'ahooks' import React from 'react' import cn from '@/utils/classnames' +import { Markdown } from '@/app/components/base/markdown' type Props = { message: string className?: string } const PromptToast = ({ - message, + // message, className, }: Props) => { const [isHide, { setTrue: hide, }] = useBoolean(false) + const message = ` +# h1 +**strong text** ~~strikethrough~~ + +* list1 +* list2 + +xxxx + +## h2 +\`\`\`python +print('Hello, World!') +\`\`\` + ` if (isHide) return return ( @@ -22,7 +37,7 @@ const PromptToast = ({
{message}
+