mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +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 { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||||
import { solarizedlight } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
import { solarizedlight } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
||||||
import React, { ReactNode, useState } from 'react';
|
import React, { ReactNode, useState } from 'react';
|
||||||
|
import ReactMarkdown from 'react-markdown';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
queryId?: number;
|
queryId?: number;
|
||||||
@@ -151,7 +152,7 @@ const ExecuteItem: React.FC<Props> = ({
|
|||||||
{data.textSummary && (
|
{data.textSummary && (
|
||||||
<p className={`${prefixCls}-step-title`}>
|
<p className={`${prefixCls}-step-title`}>
|
||||||
<span style={{ marginRight: 5 }}>总结:</span>
|
<span style={{ marginRight: 5 }}>总结:</span>
|
||||||
{data.textSummary}
|
<ReactMarkdown>{data.textSummary}</ReactMarkdown>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user