mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
fix_show-markdown (#2243)
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user