Feat: Support Markdown Rendering for tips in user-fill-up Component #11825 (#12147)

### What problem does this PR solve?

Feat: Support Markdown Rendering for tips in user-fill-up Component
#11825

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-12-24 13:25:56 +08:00
committed by GitHub
parent 5776fa73a7
commit f239bc02d3
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import MarkdownContent from '@/components/next-markdown-content';
import { ButtonLoading } from '@/components/ui/button';
import {
Form,
@ -234,7 +235,14 @@ const DebugContent = ({
return (
<>
<section>
{message?.data?.tips && <div className="mb-2">{message.data.tips}</div>}
{message?.data?.tips && (
<div className="mb-2">
<MarkdownContent
content={message?.data?.tips}
loading={false}
></MarkdownContent>
</div>
)}
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
{parameters.map((x, idx) => {