fix_show-markdown (#2243)

This commit is contained in:
WDEP
2025-05-05 15:46:32 +08:00
committed by GitHub
parent be8b56bdde
commit d0a67af684

View File

@@ -8,6 +8,7 @@ import Loading from './Loading';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { solarizedlight } from 'react-syntax-highlighter/dist/esm/styles/prism';
import React, { ReactNode, useState } from 'react';
import ReactMarkdown from 'react-markdown';
type Props = {
queryId?: number;
@@ -151,7 +152,7 @@ const ExecuteItem: React.FC<Props> = ({
{data.textSummary && (
<p className={`${prefixCls}-step-title`}>
<span style={{ marginRight: 5 }}>:</span>
{data.textSummary}
<ReactMarkdown>{data.textSummary}</ReactMarkdown>
</p>
)}